Travis headless testing setup

Hopefully fixes some issues with running karma tests in the browser