Default to hashlib instead of django.utils.hashcompat

django.utils.hashcompat is deprecated and removed in Django 1.5.
Use sha1 and md5 from the hashlib module in the Python standard library.

django.utils.hashcompat will still be used as a fallback if the installed
Python version does not support hashlib.