Doctrine-based ORM

The project has been rewritten into an Object Relational Mapper based on the Doctrine Common library.