Cleaned up unnecessary spaces, replaced tabs with spaces and fixed line terminators.
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)