add support for a sort query option
Merge branch 'list-sort' of https://github.com/mbroadst/epilogue into mbroadst-list-sort and fix tests

Conflicts:
	tests/resource.basic.js