re-implemented querystring creation so that we can ignore null and undefined values
team instance urlroot now looks at options before this