fixed frontend email ordering bug
fix iteration bug in cabinet
basic user auth
format plaintext emails as html
added unread messages count to backend