Support the WSGI_APPLICATION setting in runprofileserver

Handle fetching an internal wsgi application if it is defined. Does so
in a similar manner as the `runserver_plus` command.
Merge pull request #364 from mhahn/master

Support the WSGI_APPLICATION setting in runprofileserver