Now page for different permission settings is checked. Exposes error in #209
fixes #209
Fixed redirect after logging in on 'sign in to view this' page refs #209
Merge branch '#209_download_page_fails' into dev
Pages showing errors or login request now return 304(login required) response code instead of 200(ok). This is not completely correct (error should return error code, nog login required) but better than before, and test now pass.