Added configuration exceptions
Allow specifying an Api class to instantiate in init_api