Changed wrap/unwrap command types to be dependent on locations instead
of indexes.
Added a restore like wrap command type called RewrapCommand.

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