Add logic to create config files for sync_gateway and invoke sync_gateway remotely