Some improvments for CSG's config.json

  1. Split config.json file in more than one file and tell on db configuration where is the related CSG’s db configuration. Something like:

    “imprenol_01”: {

    “sync”: “imprenol.js” //relative path in "/home/sync_gateway/config.d/

Because it’s a pain work with a lot of database configuration in the same file. Maybe can be a tool pre-reload.

  1. Somthing to test grammar error on file configuration like nginx. Something like:

nginx -t but for CSG.

Because if i can check the static configuration error it’s really better than restart the service daemon and see that something went wrong.