Add sidebar to compaction page

This ticket adds the sidebar to the Compaction page and refactors
the code a little to start explictly stating what resources and Views
in the documents addon are intended for sharing.

Closes COUCHDB-2404
I don't think we should be defining the Documents addon in the shared Resources file. I think define it in either base.js or resources.js and the shared resources can get merged onto that object.