Stylistic fixes plugin state machine
Add error handling in plugin installation process
Plugin state machine file renaming
Add exceptions
Pep
Implement plugin test on exception handling