Code cleanups and refactorings (second part)
* Consolidated n-1 and 1-n relationships
* Deprecated a lot of legacy code that I will be get rid ASAP
* Improved error handling
* Improved separation of concerns in EntitiesXMLHandler (example: now calling a method for creating a new entity will not automatically save the changes on entities.xml)