messenger: order by message ID, not by (collision-prone) timestamp
messenger: implement message replay function

(see issue #7)