Allow specifying the master and query string as flags.

This improved defaults have the additional side effect of reducing the
likelihood of DDOSing myself if a lot of people decided to try out this
package.