in next version plugins' api will get a breaking change:
the way to get the api object will be as parameter of the "init" function.
I think this is cleaner.
Also, I've noticed that in exe distribution the 'require' doesn't work. To solve this, plugins will get api.require in the api object.