Added code to handle SignalR errors

See
http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-server#options

http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-javascript-client#handleerrors