Major refactor to support multiple handlers, mounted by URL location.