Added methods getUndoScope and getRedoScope to retrieve the respective
scope for a corresponding undo/redo command to execute.

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