initial commit with code directly extracted from SignalR sample code