Re-factored module. Removed bottle and replaced with cherrypy.