Brought home.ctp in skel folder in sync
Added type hinting
Fix failing tests caused by previous commit
Deprecate features in SecurityComponent

These features are available in CakeRequest now. The CakeRequest
version is improved as it raises more appropriate exceptions.
Update docs for SecurityComponent::requireAuth()
Use constants instead of strings.

Using built-in constants where possible is generally a good idea,
making code less error prone.
Use random iv values in rijndael.

Using fixed iv values has a number of known problems like dictionary
attacks against the cipher key. Use a random iv value for all future
encrpyted values. Provide backwards compatibility for values encrypted
with fixed iv's, and silently upgrade values for enhanced security.
Replace loose comparison with casting to boolean.
In any case AuthComponent::user() returns null not empty array when user isn't logged in.
Fix coding standards
Fixed small typo
== to === and != to !== where applicable
Fix FULLTEXT column generation

Fixes #3618
Fix type casting of string scopes to array in log engines
Removing redudant code.
Filelog with scopes needs the file name to be specified so the first `if` covers scopes too.
trivial optimization
Create rename field statements in postgres

Refs #3622
Use simpler asserts.

Refs #3622
Merge pull request #1127 from dereuromark/master-strict-comparison

Strict comparison for strings where applicable
Removed superfluous brackets in regex

 The outer brackets are just another grouping
Switch from instanceof to method_exists.

This change lets custom loggers implement scopes without inheriting from
BaseLog.