Xclass Migration

I took the Xclass detection code that was already present in the project and improved it by adding an automated class detection with xclass matching and also added a migration script for Xclass registration to it (including generating automatically a new ext_localconf.php if needed and ext_autoload.php).