Remove execute permission on normal files
Upgrade to Doctrine 2.4 and adopt ORM behaviours
Update unit tests