Tidy up code.

Delete logging, and unused code.
Bug 958709 – Detect task removed events and send a broadcast intent.
Change logtag.