Adding Login flow, relates to issue #93.

Login flow, resolves issue #93.
- Fixed flow issues
- Added socket.io auth, resolves issue #66.
- Fixed config issue with password hashing