Nev feature: Added initial Mango_Document

Also added Mango_Collection::factory and amended PHPDoc
Fixed issue: Fixed log writer