Improved build matrix.

The build is now testing using the latest django patch version for each major version.
Travis will now retry installing python dependecies if there's a network error.