integrated new configuration mechanism with the api.
added tests to test apikey not found exception