Fix up the dirty plugin after tree changes.
Wrap plugin creation in a try-catch.
Add UI for adding and removing directories from the project.