Window and click basics

Initial outline of code, with some basic functionality and tests.

Supports simple window.open and click events.