Optimize conditionals and reduce lookups.
Also, make the code easier to read removing unneded indentations.
Improved wording of link to GH repo in home.ctp
Fixed docblock. Closes #2193
Merge pull request #2194 from ravage84/gh-link-home.ctp

Improved wording of link to GH repo in home.ctp
Emptied home.ctp in test_app as much as possible

This file is never seen by anyone but gets analyzed by
``ExtractTaskTest::testExecute()``
Merge pull request #2196 from ravage84/orphaned-home

Emptied home.ctp in test_app as much as possible
Merge pull request #2187 from bar/model-optimizations

Optimize conditionals and reduce lookups.
coding standards
Update definition of an empty model.
Update tests for incorrect containable behaviour if a model only finds 1 field.
Use + instead of array_merge.

If you have numeric columns in your database, array_merge() will re-key
the array dropping the original values.

Fixes #2198
coding standards
Merge pull request #2204 from thatcode/master

Models fetched by Containable find depend on number of fields in intermediate Model
Fix file always being set to 'schema.php'

When the name parameter is set and no custom file value is provided,
the name should be used to generate the file name. empty() cannot be
used because the file parameter has a default value of 'schema.php'.

Fixes #2202