Build a classmap for contao 2 and change the classloader registration process for it.