removed unused import
handle missing JSON fields from client
use new IV for each message
remove unused constants
change window title to current nick