Collection and document redirect when not logged in

Fixes #246