Consistency checks and file overwrite prevention.

This PR is all about making sure we catch ourselves doing silly things. It includes:

- Improved privacy on fields in the registry class.
- Files cannot be overwriitten on install
- We keep a registry of which files are owned by which module (and check it for consistency)
- Reomoval of deprecated InstallComponent