Moved code for webserver from main.py to wsgi/app.py
wsgi/app.py: Moved flask functions to module level
wsgi/app.py: Fixed handling of db connection
Added files required for openshift (setup.py, wsga/application)