Removed some unused references
- Improved display of modified properties
- Improved handling of added entities (not quite there yet)
- Started to improve code structure