Move DocumentOutlineView and DocumentAttachmentsView to their own files

Both in an attempt to make `viewer.js` smaller and to be consistent because we also did this for the thumbnail view.