Only expose couchApiBase if we have one.
Cleanup rest-ns JSON since we're not using ns UI.