Replaces deprecated paginate() calls in controller bake templates.

Fixes #3895.

See: https://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/3895-baking-a-controller-uses-deprecated-paginate-et-al