Categorized Message classes and added login messages and basic login handler.
Merge remote-tracking branch 'upstream/master'