Make sure to route to mailapi for bridge messages, and include layer change for imap protocol stuff