Fixed rendering bugs, adjusted websocket compatibility