Added support for mouse events (focus events not working yet), and a few tests