Adds support for sync_gateway service creation on Centos7 and Mac OS XRebased commits

fixes issue #484