reduce the use of $rootScope a bit for docViewerWrapper, and pass type information around with document.annotation_types