Moved apiUrl to public scope and renamed it baseUrl. Removed 'env' setting and cooresponding tests.