Couchbase sync gateway

Resolves jira task BROOKLYN-9