Refactor Werkzeug requirement into flask

This is a PR is a rewrite of the code base that replaces the server code with a Flask implementation - see issue #38  and PR #40  for full discussions.  Thanks to @jeromekelleher and @kerrydc for the help and feedback.