Merge pull request #4044 from ravage84/patch-1

Added NetBeans project folder to .gitignore
Fix PHPCS errors.
Fix phpcs error.
Fix grammar and phpcs error.
Fix: Blackholed request when POSTing to a URL with space

Eg:

Actual Posted URL:
    /admin/settings/settings/prefix/Access%20Control
$_GET value:
    /admin/settings/settings/prefix/Access_Control

Since $unsetUrl differs, the $_GET value will get copied in to
CakeRequest::$query, causing CakeRequest::here() to return:

    /admin/settings/settings/prefix/Access%20Control?%2Fadmin%2Fsettings%2Fsettings%2Fprefix%2FAccess_Control=

This confuses SecurityComponent in the following line:

    https://github.com/cakephp/cakephp/blob/f23d811ff59c50ef278e98bb75f4ec1e7e54a5b3/lib/Cake/Controller/Component/SecurityComponent.php#L514
Casting expression as it errors out in postgres
Merge pull request #4076 from rchavik/2.5-space-in-url

Fix: Blackholed request when POSTing to a URL with space
Merge pull request #4011 from ndm2/stmp-auth-reponse-evaluation-fix

Make SMTP auth reply code checks work properly.
Merge pull request #3994 from ndm2/3.0-persistent-smtp-connections

3.0 - Persistent SMTP connections
Merge pull request #4074 from cakephp/issue-4015-template-stack

Improve template handling in FormHelper
Fix project baking
Merge pull request #4078 from dereuromark/master-bake

Fix project baking
Merge pull request #4070 from cakephp/issue-3945-cell-error

Improve errors for cells

Fixes #3945
Implemented ability to set a custom formatter to translation packages
Correctly implementing plugin translation files auto loading
Added a I18n::defaultLocale() method which alter intl.default_locale

The reason it alters the setting is to better cooperate with other parts
of the system like the Time class
Simplifying and fixing the defaultLocale() logic
Adding docblocks to MessagesFileLoader
Adding doc blocks to I18n
Remove remaining cake_dev domain