Replace another three classes from LoginProtocol with dicts.
Fix coding style.
Fix the documentation.