Added bodies for sim_core::put_message() and sim_core::next_out_message().
Not unit tested.