Pass host as command line option

Refactor Api class to be an actual class rather than a collection of
class methods, and pass the host in to it rather than looking it up on
the Exercism class.