Refactoring to separate App Delegate and views. Better Handling of addin...

...g projects/refresh.