Add caching and error messages

Caching is disabled for now.
Eager redirect if page is not on ssl or localhost
Add sign out