Refactor manage.py to use create_app.