Refactored details pages

Decided that it was safest to test the action for "Delete" rather than
"Details".
Bug fixes
Fixed data migration

This now identifies original inventory hire.
Fixed repositories