added do_delete to gui_api,
modified the processing for stop_plugin and close_plugin to functioning correct
added tests for pl delete
added error codes v. 0.1
added a event class system for replacing PapiEvent and used it in core