Add wsgi application object creation, combining and running mechanism for api and frontend.