Moved from being a cgi to using flask
Tweaked to listen on 80 if root, 8080 otherwise