rearrange doctrine directories
make Session compatible with Doctrine ODM
deprecate some functions
reformat code
deprecate increaseId function
move $dm to DI