Couchbase sync gateway

Resolves jira task BROOKLYN-9
My personal rule of thumb is a `FIXME` is something that should be fixed before merged; a `TODO` is a suggestion of something that should be done in the future.
It looks like you've added synchronization. Should this comment be about doing it in a different way?