Django 1.5 compatability

{% url %} stuff is NOT compatible, but these fixes are - with the version detection in there.