Add ability to sort records in Device list.
process_status_email.rb now removes temp folder at the end.