Add javascript behaviors to emulate user clicks.

This adds two components, and additional watchdog which closes the browser when no additional urls are being received from the page, and a first pass at javascripts that implement behaviors for specific sites.