Added login controller to webapp.
Added AuthError.
Added layout helper functions to webapp.
Added authentication check.