Adding large portion of mailbox functionality. Awaiting progress on comet plugin settings [issues/17] to continue.