[WIP] Created a new method - process_url_parms to add specific params to url

The method will add only specific request query string url params.
Also refactored code to separate out common code to a method.

https://bugzilla.redhat.com/show_bug.cgi?id=1142702
This feels wrong to write our own URL parsing.  It's asking to be a security issue.