Refactored login code, storing user data in session, better errors

Put login in a waterfall, now storing user information upon login (see #8), better error handling.
as discussed, this should check if an error happened then callback with `new DatabaseError`