Fixed runtests for django 1.7

running django.setup() to create env
added empty MIDDLEWAERE_CLASSES to get rid of the warning
removed redundant import