Audit trail on admin improvements

Split audit trail info on documents so we show editorial remarks and version history separately.  Editorial remarks are split by those on this edition and those on previous editions.  Version history is paginated into chunks of 30, and the next pages are pulled in by ajax.

There's a couple of simple n+1 fixes for the show and edit pages too.