Refactor application and added fabfile and uwsgi to facilitate deployment