Cleaner URL for paginatorHelper

Avoid appending &sort and &direction if the sort parameters are the one from options
Added tests
Fixed typos
Cleaning up some code
Merge branch '3.0' of github.com:cakephp/cakephp into 3.0