Move base url and API key to app controller constants.