Configure for headless testing with phantomjs
Add travis configuration file