split out logic for getting all files and absolute file paths in claiming part

Signed-off-by: Mattias Andrée <maandree@operamail.com>
split out logic for checking for file conflicts

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix claim bugs

Signed-off-by: Mattias Andrée <maandree@operamail.com>
split out logic for reporting conflicts and only abort if --force is not used

Signed-off-by: Mattias Andrée <maandree@operamail.com>
directories does not cause file conflicts

Signed-off-by: Mattias Andrée <maandree@operamail.com>
split out logic for getting the id

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m

Signed-off-by: Mattias Andrée <maandree@operamail.com>