#2757 Support flowing causation error to disconnect error handler in JS client
DWORD WINAPI GetLastError(void);

Introducing the LastError property containing the last connection error including timeouts. The property is available in boths CS and JS clients.
Fixing a typo
Reverting unintended change
Raising OnError for timeouts.
Addressing review feedback
Server WIP