[TASK] Improve Doctrine 2 setup
Now the cache and logger used for Doctrine 2 are configurable.
Default driver for Doctrine is now pdo_mysql pointing to localhost.
Schema validation and database setup only happen if a compile run was
triggered in FLOW3 and we thus may see new data.
Some unused code has been removed along the way.