Updating templates and key python files for compatibility with Django 1.6 and Mezzanine 3.0.9.