Moved Doctrine ORM functionality from the core project. Currently tests against dev-master of core successfully.