Completed transition to asyncio, implemented events and datastreams, some unit tests.