Updated installer for more rubust upgrading

- Added more comments
- Upgrade fails if layoutTypes are missing, since Content will not work without them
- All possible Hooks are fully unregistrered before re-registering
- table rename (prefix remove) only done if prefix is used