Messenger: implemented rudimentary message resend feature. Closes #11.

Also, refactored something.