Refactor API access out to its own module

And do good error handling. And remove pointless concurrency.
Webservice should always return something