Added basic login and basic tests.
user & auth implementations
merged with master