Issue #2328539: Fixes segments not being updated for targeting after they've been cached
Making a start on unit testing decisions
Adding .travis.yml and updating test scripts to run in phantomjs
Make it possible to run our tests in a headless browser