Extension hooks and skeleton of phongo, and basic bson implementation

Should there be a `json_to_bson()` function, too? Or rather, `bson_encode_json` and `bson_decode_json`.