Redirect anonymous users to login page for /profile/ (fixes #39)

* modify tests to check for redirect instead of bad request
* modify ProfileView to redirect anonymous users to the login page