Couchbase sync gateway

Resolves jira task BROOKLYN-9
What does this `TODO` mean?