Django 1.4 compatibility

 * Moved to new DATABASES settings value
 * removed run_tests cal from runtests.py
 * ported BitFieldMeta to 1.4