Fixes some settings imports

See Github Issue #241 for details.

Correctly uses settings.USE_MAILMAN (see commit message for 9a828a63).
Merge pull request #582 from learning-unlimited/settings_import

Fixes some settings imports
Fix migrations and their dependencies.

Setting up a site from scratch (or running tests) wasn't working because:
- manage.py was moved up one directory, so some places where we used a
  relative path needed to be updated
- tagdict was switched over to migrations, but it turned out that the
  ESPUser code was doing a query with Tags, so we needed a dependency
  there
Remove reference to pspicture Latex library

I recommend that any Latex libraries needed be installed on the server as
a prerequisite; it doesn't make sense for our repository to provide them
(and copy them into the working directory?) if they aren't developed by
us.
Fix some Javascript syntax errors that would show up in IE

I didn't even do any testing yet; these were pointed out by our automated
Closure compiler test.
Fix Javascript problem where csrf_token function is overwritten.

csrf_check.js overwrites csrf_token function from csrf_init.js with a variable. Probably this variable should be local, so this changes it to that. This seems to fix #580.
Merge pull request #585 from uakfdotb/issue580

Fix Javascript problem where csrf_token function is overwritten.
Add CSV schedule assignments view for autoscheduling
Remove use of console from json_fetch.js
Fix IE7 Javascript error in k12school field
Fix IE7 Javascript error in student profile
Fix problem with classes not showing up in lottery on IE7

For one reason or another there is a <tbody> added inside the <table>
for each timeslot's group of "regular classes" in the lottery interface.
Most browsers allow us to add a <tr> for each class to the end of the
table, but IE7 (and possibly others) require you to add it to the tbody
instead in order for it to show up.
Tweak dropdown sort options on dashboard as suggested by Melissa
Fix IE7 Javascript bug on dashboard
Fix typo in program setup for onsite bit
Filter out unscheduled classes from teacher schedules
Switch teacher check-in to @needs_onsite
Adjust lottery assignment ordering of sections

This change was suggested by Stanford.  With the sections in completely
random order, the longer classes (e.g. 3--4 hr) tend to get much fewer
students because the students that applied to them have already been
assigned conflicting classes.  This change assigns groups of sections
based on their duration in descending order to reduce the frequency of
this problem.
Add display_stats function to lottery code

This is another local change from Stanford.  It merely prints out some of
the stats as they are computed, for convenience.
Stop assuming people were born in 1994 (if using login by bday)

This is a local change from Chicago, and the problem only affected Chicago
because they were the only ones linking to the login by birthday feature.
If you have logged in by birthday and you go to the student profile page,
the code was using the saved month/day from your login and assuming a year
of 1994.  This worked reasonably well (at least in 2008).  However, it's
completely wrong.

We discovered this problem when an unlucky student entered 2/29/1996 (a
valid date during a leap year) on their profile and then proceeded to log
in by birthday and edit their profile again.

Now we seed the DOB field with the previous value.  If none is available,
we will guess 1998 for the time being.