Extension hooks and skeleton of phongo, and basic bson implementation

Missing more `@param` here?