Partial restyling, fix of login method.

Code has been partially restyled. Login method has been fixed to reply
with auth token.