[WIP] Some scripts that come in handy when working with Couchbase's sync_gateway