Set up skeleton for nodejs and phantomjs testing

* Based on https://github.com:Krinkle/travis-ci-node-and-browser-qunit
* Took JSHint settings on those of the VisualEditor repository.