Added the beberlei DoctrineExtensions to the vendors.
Registered the DoctrineExtensions namespace with autoload_namespaces.php and added the function YEAR (Year.php) to Doctrine in config.yml.
Added basic __toString() method for debugging.
ReferenceTransformer now checks the db by ids and a combination of year, volume, pages and journal to see whether a reference was already persisted.