Don't cache ErrorPages

This ensures that the http response codes are set correctly.
Refactor session starting logic to be in one place
Merge branch 'bug/dont-cache-error-pages'