add set_login_view helper function and tests for per-blueprint login views

This is for my comment on #164