Cleanup/Fixes to WebSocket compatibility layer

* Code cleanup
* Now correctly fires error callbacks
Call SuccessCallback on first offer denied #27