added tests for the location parameter
PEP8
Stripping all parameters before assembling the url.

Also moved the location special case handling to the url building
function.
Extended the special case handling for the location parameter
Extended location special case handling tests.
Clearing up parameter confusion