add some client side sort types, updated the selected_mailbox data with
better key names and made it public
minor updates