events: Move code to http_client

The websocket code should be in the http_client, not here. Later we'll build
out event handling for data models.
http_client: Update async swagger client; add tests

This patch updates the async client with some more functionality, and starts
to add some very basic unit tests.