How to write a plugin

I see you have a plugin folder. Can you catch an event like you do with the emmiter?
emitter.on(‘ticket:created’, function (data) {}

Also if there a simple way to have the plugin add a section in setting like the Push Service to add setting for the plugin?

Yes, but that plugin system was disabled quite some time ago. There were some security flaws that needed to be addressed and thus resulted in the system being turned off till some things could get reworked.