Refactor all sync/publish commands to use a common query builder.

Also, raise the epoch on our python-billiard package to 1 so that
Fedora's python-billiard package will not replace it.