Auto JSON stringify objects for connections in JS client

- Updated websockets & ajax send to encode message using connection.json if the message is anything other than a string
- Updated call sites in SignalR and samples that were manually JSON encoding to just pass the objects themselves
- #327