graceful failure if websocket script is blocked

Closes #154. Without this patch, an adblocker blocking the Faye/Pusher script, or the websocket server being down would cause all javascript execution to halt.