add domimplementation->hasFeature()
add formatOutput property (extends DOM)
call xmlFreeDoc when doc is no longer referenced rather than custom code
save and savexml now format based on formatOutput property
initial definition for document ref counting
fixed property access to support all objects
clear property handler from invalid objects until ref count implemented