Refactored HTTPHandlers in preparation for introducing search class.