msg_try_receive implementation by ludwig.
looks reasonable to me, please review!
looks OK to me.
Merged #65.