run behind nginx

Added ability to run behind an nginx proxy besides gunicorn/built-in server.
Updated web apps to run on localhost.