changed regexp for response code

Facebook servers have now HTTP response without status string. The use 
"HTTP/1.1 200 "
while CakePHP needs 
"HTTP/1.1 200 Ok"
because preg_match() in code use + instead *
Add tests and fix issues with multiple trailing whitespaces.

Closes #3016
Merge branch 'http-response-code' into master.

Merge changes from #3016 into master.

Closes #3016
Themed CakeEmail should load view helpers with the theme set
Merge pull request #3051 from occitech/master

Themed CakeEmail should load view helpers with the theme set
Add form attribute to hidden inputs when present.

If inputs are placed outside of the form elements the form attribute
needs to be set on the hidden inputs. Without this attribute the empty
state does not submit correctly.

Fixes #3053
Merge branch 'master' into 2.5