Extension hooks and skeleton of phongo, and basic bson implementation

Added = array() to optional array now, and = null to optional objects