Ordering for document collections

Implements https://www.pivotaltracker.com/story/show/56772878

Additionally gives bonus functionality of being able to drag-drop documents between groups.