Couchbase sync gateway

Resolves jira task BROOKLYN-9
should be removed because this was fixed according to @Nakomis.