Extension hooks and skeleton of phongo, and basic bson implementation

logging callbacks of bson [en|de]coding? No, not really.

This is exclusively to debug the c code during development.