Bring in code from client branch

Enable API, clients for legacy db schema