Code cleanup and fix indentations
Added error handling for plugin schema updates
Fixed indentations and optimized the new code a little bit
Moved default bug priority to accommodate project specific configuration options