[CLEANUP] Centralize standalone view preparation

Also add TYPO3 CMS 7 logic for the view init process.

Change-Id: I027dccd32454566faf18f41c873af878921e53ea
Reviewed-on: http://review.typo3.org/34423
Reviewed-by: Tim Lochmüller <tim@fruit-lab.de>
Tested-by: Tim Lochmüller <tim@fruit-lab.de>