Tasks stop on unmanaged

stop tasks when entities are unmanaged, and better bookkeeping for scheduled tasks.
(also fixes eclipse IDE problems caused by checkstyle.)
yes.  i noticed a leak where we might ask for tasks with tags after a tag is no longer in use.