1096931 - improving repo update command to better detect spawned tasks

Moved constants around so that they can be used by both client and server code.

https://bugzilla.redhat.com/show_bug.cgi?id=1096931

Please review with other PRs linked on that BZ