update doc viewer wrapper references to leave() to point at rootscope
Merge branch 'bulk_documents' into testing