Extension hooks and skeleton of phongo, and basic bson implementation

Indention here isn't consistent. Mixing tabs and spaces?