Extension hooks and skeleton of phongo, and basic bson implementation

https://github.com/bjori/phongo/pull/4/files#discussion_r13976882