A bunch of improvements to the PHP implementation, including OO rebuild and support for file version 1

I modernized the PHP implementation and added support for file version 1.  It'd be nice to see it incorporated into your tree!

Thanks,
Curtis