MDL-39854 reimplement frankenstyle support and add classloader

Thanks Ankit Agarwal and Rajesh Taneja for peer-review and bug reports!
MDL-39854 add namespace support to the classloader
MDL-39854 improve core_frankenstyle comments
MDL-39854 use classmap in classloader