Add --source option to CLI

This lets you set the source of the query for logging purposes. Tested
by running the CLI with --help to make sure the option showed up, and
added a unit test