Class inclusion/load-order improvements

* Added include method to make it easier to debug load-order issues.
This throws an error if the class is not available, either because it’s
not included or because it needs to be loaded first.
* Added Debug module to core
* Deprecated MediaLoader name, renamed to Loader