Refactor Werkzeug requirement into flask

This is a PR for discussion is a rewrite of the code base that removes Werkzeug and replaces the server code with a Flask implementation - see issue #38 .
I'm confused with your next comment and how it relates to this one.  Are we removing handleHTTPPost or not?

To add cors is it as simple as adding the line: 

resp.headers.add("Access-Control-Allow-Origin", "*")
after 19?