Poltergeist integration

@monfresh This adds browser button navigation tests, unfortunately I couldn't detect the JSON bug in a test, possibly because of how Capybara waits for content (which is needed for ajax requests). I tried checking the content-type response header and the literal JSON string value to no avail. At any rate, this adds the functionality for browser navigation tests at least.