Unit/Functional Tests

Here are a set of changes to add unit and functional tests to h. It mainly sets up a framework using pytest and selenium, and obviously needs ot have more tests added. More information available [on the wiki](https://github.com/hypothesis/h/wiki/Testing). Fixes #455.