add resend on reconnect

I have modified the client to handle socket.io reconnects. The two states ```AwaitingConfirm``` and ```AwaitingWithBuffer``` have now a method ```resent``` that will resend the outstanding operation.

I have also added the unit tests for this functionality.


thanks,