Added path resets to prevent path leakage between children
Refactored DocBrowser's context init for new factory init ordering