Add support for TMPDIR locking and minor enhancements
Fix component stopping bug, plus other enhancements

* Update channel interface.
* Update logging levels.
* Minor other hacks and updates.