Fixes some issues with endpoints.
Added WIP unit tests for configuration api.