Support multiple class name generation strategies

Support class name generation for legacy Extbase class names (like `Tx_MyExtension_Controller_FooController`) and super-legacy pibase class names (like `tx_myextension_pi1`).