Add some validators

See https://github.com/doctrine/DoctrinePHPCRBundle/pull/29

Also some little updates to improve edition.