Plugin event generalization

This should help you a little to start with plugin support. I don't have time to give you more at the moment, I hope I will have soon.

I think of on-the-fly plugin compilation (wich become more a C# script in this case)