Refactor the boring stateless HTTP stuff out into its own class