Reorganize the wsgi app creation

Reorganize the wsgi app creation a bit, so that it's easier to
consume it by uwsgi configuration. Allow the development server to be
run as:

   python -m xsnippet.wsgi