login_required support for UrlconfIncludePages

For anonymous users, we don't install the login_required urls. This
means that when they visit a login_required url, they get a 404 -- not
the expected redirect to the login page. To rectify this, try resolving
the request again, this time only using UrlconfIncludePages. If it
resolves this time, we know to redirect_to_login.
extract get_pages into a method