Making the API endpoint selection dynamic

Making the API endpoint selection dynamic through app.config so this test app can be used with the real API endpoint as well as the test API endpoint.