Add functional tests

Hey @miketaylr check it out:

```
npm install
wget http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar
java -jar selenium-server-standalone-2.42.2.jar
```
open a new terminal window
```
node_modules/.bin/intern-runner config=tests/functional/intern
```