Move http handler into it's own package/library.