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 String.indexOf() instead of String.search()
Merge pull request #6 from MiLk/fixes/5

Detect tasks changes instead of apps changes