Adding Basic authentication with has_secure_password to authors
Clean some code up
Completes sessions and authenticattion