Fix routes not matching without trailing /

Routes connected in scopes should match both the / and non / terminated
URLs.

Refs #4218
Fix deleting with aliased conditions.

When deleting with aliased conditions different SQL is needed. Correctly
generate SQL that works across platforms to allow aliased conditions to
work in delete queries.

Fixes #4205
Merge pull request #4229 from cakephp/3.0-router-fix

3.0 Fix router parsing and associated deletes