Add support for persisting sort and other options

Persist sort order, reverse sort order on clicking on header twice.