use one config var to specify the reload command
Config structure
Detect tasks changes instead of apps changes

* apps change when you update the number of instances
* tasks change when an instance is modified

If you watch only the app, you will get only the old endpoints.
You have to wait for the new instance.
Use js-yaml instead yaml to parse the YAML files
use String.indexOf() instead of String.search()
Generate the configuration file with a template instead of a bash script