Capture all document events and emit clicks to be handled
Test handling of actual MouseEvents
Refactor file structure, keeping api for actual public APIs and lib for internal libraries