Added scope parameter to Command and CommandState and various usages,
and indirect usages, of these interfaces.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>