Refactor manage.py to avoid deprecation errors

execute_manager() was deprecated on Django 1.5 and removed in 1.6.