Updated packages for node-client and node-server.
Cleaned up some of the code. removing unnecessary try catches.
Now passing error in state change for client.