Fix links for associated records.

Fixes #3941
Merge pull request #3949 from cakephp/issue-3941

Fix links for associated records.
Fix case sensitive issue in table alias.

This was causing build failures for a few setups.
Update TableNameExpression tests
Removes the hardcoded quoters
Merge remote-tracking branch 'upstream/3.0' into 3.0