Move DocumentOutlineView and DocumentAttachmentsView to their own files

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