add innerWidth, innerHeight, setTieout, setInterval, and clearTimeout.
first cut at doing events in a more typed way.
fix keyboard events
Merge pull request #2 from waterson/master

add innerWidth, innerHeight, setTieout, setInterval, and clearTimeout.