Some fixes/debugging to SockJS server.