Cleanup deprecated functions

All deprecated functions replaced. Has to be tested with TYPO3 version  6.2