remove "document_shares" stats call as it would be incorrect now
load document is_prepared status from the database
fix documents page query
remove some unused code
fix modals on documents page
Merge branch 'document_paging' into testing

Conflicts:
	documents/partials/companyList.html