Add concept of DocumentMigration that allows changing documents retrieved from the database.
Fix bug when InvalidDocumentTypeException was thrown, but unitofwork was messed with.
Fix missing use statement to Proxy causing all kinds of weird bugs in UnitOfWork, fixed bug when deleting a proxy.
Merge remote-tracking branch 'doctrine/master'