Making a WSGI app instead, work in progres...