refactor the removeQueryParameters

this is in response to
http://stackoverflow.com/questions/18489315/how-to-reconstruct-a-url-usi
ng-cakephp-while-removing-selected-query-parameters