plugins/coreevents: publish some core events via pluginlink

For now, only exposes the main loop (MainLoopInner actually), and
RunScript, which can be used to suppress/redirect script execution
events.

Also adds some documentation in nwnx_modules.h