Update prepared statement DB backend for Django 1.4
Update auth middleware for Django 1.4

WARNING: This is a hack to code I don't fully understand yet and it is not
well tested.  Further review is necessary.

Django made some changes to its internal APIs for the authentication
middleware.  This broke our customized authentication middleware.
We had a substantial amount of code replacing the Django auth middleware's
request.user object with an ESPUser.  It looks like Django's new lazy
evaluation class will work here.

We may want to restore the part that tries to set request.user when
Django's get_user function doesn't think anyone is logged in, but the user
ID is stored in the session.  I have no idea why this would happen though.

One other thing I changed is to import ESPUser.  This hasn't broken
anything for me, but I bet there was a reason the previous code tiptoed
around importing ESPUser until it was actually necessary, so I would be
cautious here.
Update cache_inclusion_tag to work with Django 1.4

Django's internal APIs for template tags changed.  This attempts to deal
with that by modeling the cache_inclusion_tag's tag generator on some of
Django's tags.

Appears to work for our QSD and catalog tags, but may be broken elsewhere.
Merge remote-tracking branch 'origin/django-1.4-support' into main
Merge branch 'main' of github.com:learning-unlimited/ESP-Website into main
Merge pull request #404 from learning-unlimited/django-1.4-support

Django 1.4 support
Fixed issue 417: how heard about ESP on user profile page wasn't working.
Oops, corrected if statement.
Added email confirmation fields to all the account creation forms.
Changed college to college/employer on teacher bio and userview
Replaced ADMIN_MEDIA_PREFIX for Django 1.4
Fix "AjaxForeignKeyNewformField has no attribute 'validators'"

Fix AjaxForeignKeyNewformField to properly call
django.forms.fields.Field.__init__(), which creates an attribute
called "validators" which Django 1.4 expects to exist in some places.
Merge branch 'main' into django-1.4-support
Modify dev server script to specify Django 1.4
Enables Django's messages framework

django.contrib.messages was added as a dependency for the admin panel
in Django 1.4. This broke the admin panel.
Remove deprecated user queue module

Resolves #469. I didn't find any code that tries to import either queue
or Queue, so this should be safe.
Merge pull request #421 from uakfdotb/fix-issue417

Fixed issue 417: "heard about" on profile wasn't working
Corrects confirm email field name
Adds getBooleanTag calls to new user registration

The use of getTag was causing problems in some cases.

Some lines had code such as
    Tag.getTag("ask_about_duplicate_accounts",default="false")=="false"
rather than
    Tag.getTag("ask_about_duplicate_accounts",default="false").lower()=="false"
which was causing if-statements to branch the wrong way if the filtered
Tag had a value of "False".

This was noticed when submitting a SinglePhaseUserRegForm with
validation errors caused a UserRegForm to be rendered on page load,
rather than a new SinglePhaseUserRegForm.
Cleans up SinglePhaseUserRegForm

This form is a subclass of UserRegForm, but was redefining some fields
and a clean function. Fixes these to take advantage of inheritance.