Update messaging logic.

Added compose for Messages.
Added a generic inbox and outbox.