Refactored JSON API code abstraction to json_api.
Moved abstract JSON API code from service_config.
Refactored tests due to latest JSON API change.