use jinja to generate sync gatewat config

Change-Id: I544a8dd51ace0d08142a4f33e62a6a910f17e47c
Reviewed-on: http://review.couchbase.org/37478
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Li Yang <lichenyang2@gmail.com>