Implements logging in with username/password combo

Fix #29
Also updates to the new endpoint structure in the Auth API.