added a config module to store the api host and oauth2 endpoints