Optimize $ type checking

isWindow and others were causing a HTML render on $ instances due to the instance toString call, leading to quite a bit of overhead.
Add page.runScript API
Expose hrtime to client space