Moved to webapp2 framework, broke files out into MVC, added BaseHandler class