added version to login json for version check
messages now sent in reverse chronological order