This is all crap and will be changing in 2.1 hopefully as I've been cleaning the plugins stuff so we can load and unload them properly.

This whole section could die