implement multi-url search query generator

https://bugzilla.mozilla.org/show_bug.cgi?id=969438