PSR-4 & namespaces.
Move to namespaces in static files too.
Remove references to the VERSION constants.

Also, fix a reference to the Exit event.
Start fixing the unit tests.
Use namespaces everywhere.