Add settings array to connection parameters that executes SET statements once connected

Following my last PR on datestyle for Postgres (https://github.com/cakephp/cakephp/pull/1161), here a more generic solution.