Alert socket routes: abstracted logic to send a document to all sockets to a separate method. When a message is received over redis PubSub, document is emitted to all sockets independently of redis cache updating operations,
Fixed instances where socket object was was expected, but got socket Id string instead. Server side of alerts system should be stable.
Added client side logic to handle creation, update and deletion of alerts based on socket.io events
Fixed bug in server side alert update handling where redis key value was not being properly set
Fixed redis alerts.deleted handlign logic such that redis key values are properly set. Fixed bug in redis alerts.updated handling logic where objects were not being stringified.
handleSocketConnection function: data from redis being converted from JSON strings to objects. Removed duplicat emitToAllSockets call.
Fixed bug where alert was being pushed to Shared.alerts before every update.
Name of alerts is visible to anon users.
Fixed bad pointer update.