Entity History is now loaded via ORM
History size is now loaded via ORM
Metadata cache info is now retrieved via ORM
Added missing line
Setting metadata cache values is now done using ORM
Added todo