Storing rarely modified properties in the user's session cache, to avoid unnecessary database queries. Remove double-call to main custom context processor, made Django toolbar REQUIRE CACHE_TIME=0
Moving code to appropriate middleware
one more relevant spot
Merge branch 'develop' of github.com:learningequality/ka-lite into minimize_queries_1

Conflicts:
	kalite/main/middleware.py
Don't cache data in session if user can change them (to avoid having to invalidate caches). Also fix a bug in call to test_connection()
Make require_facility and login page more efficient.  NOTE: we should never send querysets to templates, only lists!
Merge branch 'develop' of github.com:learningequality/ka-lite into minimize_queries_1

Conflicts:
	kalite/securesync/users/api_views.py
Fixed bug--0 facilities mean facility_exists is FALSE :P
Merge pull request #785 from bcipolli/minimize_queries_1

Minimize queries 1