Call websocket methods from main thread

The websocket can get locked up when too many calls to it's `send` method are executed from a different thread than the thread it was created on.

If there seems to be performance issues related to this being on the main thread further work could move all AsyncHttpClient access to a handler thread.