Changes in exception handling and cache mechanism.

- Most external facing exception converted to VictimsExceptions
- Updated affected test cases
- Introduced key hashing to fix cross-platform filename issues
  encountered by enforcer.