Add an application object parameter to watcher callback

This at least gives the callback the PID of the app, which is more useful than the name for bookkeeping purposes.