First draft of reworked plugin system. Compiles. Untested.
Merge branch 'master' into plugins-rcstyle

Conflicts:
	api
	lang
Clean up imports on plugin loader
Merge branch 'master' into plugins-rcstyle
Update submodules
General clean up and improvement of internal plugin system