[BUGFIX] Can't run CLI script

When running the CLI script for sending mails (not the scheduler)
an PHP error gets generated.

Reason for this is the refactoring of the TYPO3 framework. The
class "t3lib_cli" was renamed to "CommandLineController" and
therefore has no constructor named "t3lib_cli" anymore.

Call the constructor via "parent::__construct()" instead.

Additionally also a unit test for this issued was introduced.

Change-Id: I6b0c6fae908f155c56c8781c7f7ec0e113b91901
Resolves: #54461
Releases: 3.1, 4.0
Reviewed-on: https://review.typo3.org/26455
Reviewed-by: Henrik Ziegenhain
Reviewed-by: Bernhard Kraft
Tested-by: Bernhard Kraft
[BUGFIX] initializeHookObjects: array not properly checked

When using the scheduler for creating recurring newsletter an error gets logged
when the hook array isn't initialized.

Change-Id: I730d83abde79ff6f16bf39ff89b4f198b04558a5
Resolves: #52094
Releases: 3.1, 4.0
Reviewed-on: https://review.typo3.org/25025
Reviewed-by: Stefan Neufeind
Reviewed-by: Bernhard Kraft
Tested-by: Bernhard Kraft
[BUGFIX] Wrong type label in direct mail listing

If there is a draft record among the listed direct mails in the first
step of the Direct Mail module it will always show "EXT URL" for
drafts, no matter whether they are drafts of external url or drafts of
internal pages.

Change-Id: Ic8e888d576ce8a305830c6a88453d2418e0e51ae
Resolves: #52458
Releases: 3.x
Reviewed-on: https://review.typo3.org/24249
Reviewed-by: Bernhard Kraft
Tested-by: Bernhard Kraft
[BUGFIX] Adjust returnmail.phpshb for TYPO3 6.x

!!! Not yet tested, since I don't have a local
test-environment for it. Code based on init from:
typo3/cli_dispatch.phpsh

Change-Id: Ie633c14ae31397858a62fe9a778d790bd68b01ad
Releases: 3.1
Resolves: #49453
Reviewed-on: https://review.typo3.org/24605
Reviewed-by: Stefan Neufeind
Reviewed-by: Markus Schubath
Tested-by: Markus Schubath
Reviewed-by: Henrik Ziegenhain
Tested-by: Henrik Ziegenhain
Reviewed-by: Ivan Dharma Kartolo
Tested-by: Ivan Dharma Kartolo