[FEATURE] Add hook in csc to allow alternative renderings

This hook is needed to render alternative content which is not
just a plain image. I am thinking of showing other FAL content
like videos, things which need to be embedded as JS, ...

Change-Id: Id1f3a21dfbb11fb88fd9384acdd29b445efd4671
Resolves: #46259
Releases: 6.1
Reviewed-on: https://review.typo3.org/18893
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
[FEATURE] Lazy database connection

The patch implements "lazy" database connection, a connection
will be established by database connection class on demand.

Bootstrap now just sets credentials of the database connection
class after LocalConfiguration file was read, but does not
initialize the connection on its own anymore.

* Separation of concerns - Bootstrap does not take care of connection
  initialization, the db class will handle it on its own if needed.
* Database connection class got setters for options and credentials,
  it knows the details and can create, sleep and wake up a connection.
* Tests do not need to take care of a special db connection backup
  anymore, mocking / serializing $GLOBALS['TYPO3_DB'] and connection
  is handled by the class automatically.
* eID scripts do not need to call connectDB() anymore: The according
  method in eid handling is obsolete and developers do not need to
  think about it anymore.
* Simplification of bootstrap cross-dependencies.

With the patch only the frontend explicitly calls connectDB(). This
cannot be changed by this patch and needs some more thoughts.

Exception and logging handling is not fully cleaned up and should
be done at a later point. Still, the patch should be fully backward
compatible and dbal should work too, if related patch is applied.

After mysqli switch, main method connectDB() now handles different
port settings correctly and fixes the related issue.

Change-Id: Id977228a525dc2c80085ad21c78a7b7d4044160e
Resolves: #46880
Related: #46825
Releases: 6.1
Reviewed-on: https://review.typo3.org/19525
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[TASK] Raise submodule pointer

Change-Id: I6084b12d23644b4ecf9750c63b7eaa26955c4704
Reviewed-on: https://review.typo3.org/19959
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn