Add testing for Django 1.2, 1.3 and 1.4 with some fixes.

Python 2.5 testing is removed as well since the last py25-supporting release was v3.1.0.