finalize factory pattern

With this additional level, dev server can be launched by command `python app.py`
Also this is convinient when integrating with uwsgi:

    --wsgi-file myflaskapp.py --callable app

See http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html for details