Reverted the breaking change where we throw if a callback with fewer arguments is encountered

#2203
Made changes as per code review feedback

#2209
Don't mark the websocket transport as connected too early
Remove portable .NET http client and use in box version for .NET 4.0

#2177