Changed add/remove/restore commands to depend on location instead of
explicit indexes and explicit id's.

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