Refactor EntityToIdentifier stuff into ObjectToIdentifier
Remove hardcoded dependency on Doctrine ORM, and allow instead to register transformer for every persistence type (ORM, ODM, PHP-CR).