Support for result handler on register for SockJS client's
Add secure sockjs server tests.