now correctly clears components cache when deleting a plug-in

trimComponentCache caused the eventual javascript files to not be
reloaded
clearComponentCache fixes the issue
Added a reload action for plugins