Fixes #5025: Autoloader allows changes, requires PSR-0 but is BC with 1.8

Implements strategy described [here](https://github.com/Elgg/Elgg/issues/4960#issuecomment-13695707).