Add php:validate option for generating read/write validator code

Currently, generated PHP code will happily read and write messages with missing required fields. This patch adds a "validate" option for PHP to generate validator methods and call them after reading and before writing objects.

If a required field is missing, a TProtocolException is thrown both for read and write.