Mujir/Hemant | #1070 | refactoring and some more bug fixes.
1. Pulled all the common code for deleting an entity association from older parent into a new class. Changed PanelEventWorker and SampleEventWorker to use this
2. Fixed bugs for Department and Sample. Renaming them used to delete all the child tests/panels etc.