refactor all HTML request handlers into one module