Remove unused cache helper (was for userbits)
Merge branch 'schema-migration-rebase' of github.com:learning-unlimited/ESP-Website into schema-migration-rebase
Remove unused ProgramModuleTestCase

This has been superseded by ProgramFrameworkTest which is defined in
esp/esp/program/tests.py.
Remove anchor references from class subject/section deletion

These should no longer be used now that the DataTree functionality has
been removed; we want the tree to be essentially frozen (until some time
in the future when we actually remove the data and apps).
Fix class titles in lottery
Sort programs in /manage/programs
Update FinancialAidGrant.__unicode__() for different cases
Update financial aid app module for new schema
Fix render_to_response calls in user search views
Split creation of Program user lists into separate functions

This allows it to be invoked separately when Program.__init__() has not
been called for some reason.
Add Program.teachers()['class_submitted'] query type

This is a simple query that catches all teachers who have submitted a
class description.
Revise default queries for AdminMorph feature

Previously, when you went to morph into a {teacher, student, volunteer},
your query options were applied after filtering for program participants
using the Program.{teacher, student, volunteer}s_union function.  This
would in practice generate massive queries that effectively ORed together
all possible types of students, e.g. those who completed the survey and
those who signed up for the lottery (and about 20 more).

Besides being unnecessary in 99% of use cases, the complexity of these
queries got even worse after schema simplification.  This is (I think)
because there are now more tables to join when you want to filter users
(Record, Permission, StudentRegistration, UserAvailability etc.).

The fix I propose is to use simpler default queries that don't capture
quite all of the possible program participants.  I had to add some code to
do this but I think the time savings is worthwhile.