data libraries: default sorting; cleanup; refactor; jslint; start on getting rid of modals for library/folder creation