Login changes to force profile page to show when accessing templates when not logged in.  Also handles redirection back to profile when user logs out.  Renames 'account' to 'profile' in code for ease of maintenance and consistency.