Change alterUrlParams to take an object

Signed-off-by: Byron Ruth <b@devel.io>