Allowed users to sort field types on buckets

Introduced the Sortable plugin for Mongoose that sorts embedded
arrays as well as introduces the necessary sort field and index.
Client-sided changes are based on #90.