Replaces deprecated paginate() calls in controller bake templates.

Fixes #3895.
Merge pull request #1443 from Phally/master-3895

Replaces deprecated paginate() calls in controller bake templates.
Fixes cake bake all. Refs #1443.
Merge pull request #1445 from Phally/master-3895-2

Fixes cake bake all. Refs #1443.