Extension hooks and skeleton of phongo, and basic bson implementation

Same comments as DeleteResult.