Added id autogenerate

Message validation, let id be non-number.
Allow giving an already opened SignalR connection

Start sending loop immediately in case there were messages stored.
Slightly improve the sample.
Clean up typescript code, enhance sample.