Improvments to the plugin syatem.
Tweaking core plugin loading.