Refactoring the api_host stuff to run from a more controllable Configuration class, which we can start extending to control more things
Renaming api_host to just host and cleaning up a bit of the mess from the last commit which got left over