Api client for discovery json

Made to use as general purpose discovery json api-client + supporting services.