Fix test_advanced_search_fields test.  Fixes #1416
Fix unit test

This unit test failed when running OTM2 without companion repos
Fix failing unit test.

This test consistently gives a *slightly* different result on Travis CI.
I don't think it's worth worrying about, so long as we have consistent
behaviour on the same machine.
Skip tests that inexplicably fail on Travis
Run JS unit tests
Add coveralls.io support
Add badges