[Refactoring] splitted Session and DocumentIdentityMap into interface and implementation. This will hopefully allow to move the transaction handling code from API to impl.
Changed paths: