Extension hooks and skeleton of phongo, and basic bson implementation

`proto integer`, which will end up corresponding to constants.