Roll back the abortive attempt I was making, since it felt wrong.
New approach seems much better.

Need to integrate inotify stuff into the main code.
Integrate inotify stuff into the deploy script.

TODO:
- Still needs a sensible handler for inotify results.
- Monitoring as a whole needs thinking - should ultimately be a whole
subsystem which looks at various monitoring options, and I need to
consider how to do this.