Extension hooks and skeleton of phongo, and basic bson implementation

This is an interface. Should these implementations be here?