Also added a new jasmine spec for this as well as jquery.tinysort to do the sorting.
Also add flush method to converse.js (used in ClientStorage tests)