make extension versatilely configurable, support for TYPO3 4.5 until master

Thanks to Michael Knoll and Punkt.de for all these changes!