Extension hooks and skeleton of phongo, and basic bson implementation

The @param blocks are not supposed to be there btw. A oneline description should be with the proto.

This is extracted from the PHP code in docs/ - so if the docblocks don't include a oneliner, I accidentally extract the first @param :/