Move ApiHelper to its own file, add a config object to the namespace to easily change server urls. Cleaned caching function