[DECORATORS] added @deprecated decorator: mark a callable as deprecated
[CORE] major syntax cleanup + added 2 default event handlers in Plugin class

This commits carries a major syntax cleanup of the core modules + a minor change in the plugin class. I added default event handlers for EVT_EXIT and EVT_STOP so it's possible now to catch them in plugin classes and perform operations.