Moved the console into a separate object. Added sanity checks for orphan
entities and dangling entity references. More checks to come.