Modify CakeSocket and HttpSocket so that the "protocol" parameter can be used to specify which protocol to use for creating sockets. These are protcols in the php "[a-z]://" wrapper sense. I also modified the test for these two files respectively to accomodate these new changes.
Unrelated to this bug, I added a "head" function inside of HttpSocket to go along with the GET/POST/PUT/DELETE/PATCH combination that's already present. Came in handy for me for deciding if I wanted to hit a resource with HttpSocket or not.
Fix coding standard violations
Remove unneeded comment out line that I just saw in compare view on GH
Fix HttpSocket test to actually reset protocols for correct test. Modify HttpSocket so that Https with non-passed in protocol doesn't set it to tcp and fail test.
Fix for CakeResponse::sharable() header to include private caches
Fix CS errors.
Fixed failing test for CakeResponse::sharable + spacing
Fix for failing test "Whitespace found at end of line"
Overwrite the schemaName property if it is not defined in the class.

If a model class does not define a schemaName we should use the
datasource's schemaName. We can assume that people using schemaName want
to lock the model onto a specific schema given the changes in #3210

Fixes #3720
Add an upper bound to the POST data SecurityComponent will consider.

'Kurita Takashi' has let us know that the previous patterns could be
abused by an evil doer. One could potentially send a very large deeply
nested POST data structure. Matching that structure could overflow the
PCRE limits causing a segmentation fault. Adding an upper bound will
solve the problem and I doubt anyone is doing POST data structures with
more than 10 levels of nesting.
Disallow hexadecimal input with inList.

Instead of turning on/off strict mode based on the user supplied input,
cast everything to strings and always use a strict check. This avoids
the potential issue of a bad user using hexadecimal when they should not
be allowed to do so. Thanks to 'Kurita Takashi' for pointing this out.
Merge pull request #3872 from CostaC/response-sharable-fix

Fix for CakeResponse::sharable() header to include private caches
minor optimisation, refs comments on 81875cfeb1b8e5c414cf9de3c96dd2dde50150bc
Merge pull request #3878 from ceeram/optimize

minor optimisation, refs comments on 81875cfeb1b8e5c414cf9de3c96dd2dde50...
Fix CS
Merge pull request #3880 from markstory/incorrect-validation

Fix issues with Validation::inList() and SecurityComponent
fixes #3887 CSRF reusable token expires
increases time window in CSRF token expiry tests to 2 seconds

travis-cs failed with 1 second margin
Merge pull request #3888 from Schlaefer/fix-#3887-reusableCsrfExpires

fixes #3887 CSRF reusable token expires
Correct pattern matching.

Instead of 10 digits, it should limit at 10 groups.

Refs 1988e89e7382ba830c0172f399887595714c5b18