Implemented mouse events + dispatch to ws_cursor
Moved log_ctx out of utils into their own files