Updated ui-sortable and rewrote folder and document storage for improved stability