Fix php session id problem with concurrent requests.
Various fixes for mailbox bookkeeping.
Also add myself to the message thread.