Tasks stop on unmanaged

stop tasks when entities are unmanaged, and better bookkeeping for scheduled tasks.
(also fixes eclipse IDE problems caused by checkstyle.)
Why did you switch from `JBoss7Server` to `TomcatServer` in the last commit, out of interest?