moved comment to the top
unify functions and streamline code
moved manage.py one level up (and tools)

recquired by django 1.6
prepared code for django 1.6