Extension hooks and skeleton of phongo, and basic bson implementation

Same comment as https://github.com/bjori/phongo/pull/4/files#discussion_r13975994