Setting up authentication/authorization.

And simplifying views/routes.