Add and pass privatemessages scope test.

Moved the following functions into the PrivateMessagesMixin class (that means
they're now part of the session object, rather than the user object):

* get_inbox
* get_modmail
* get_sent
* get_unread