in flux.
Added events, and got all api stuff working as I could. WIP