Refactor app resource class

This creates a new resource class, python_app, which the gunicorn_app
resource now uses.

This means that python_app can be used without implying a web app, e.g.
for a worker daemon.