lots of changes to support namespaces in main controller classes, aliasing without htaccess etc.