Make require_facility and login page more efficient.  NOTE: we should never send querysets to templates, only lists!