test - add integration tests

Integration tests using CasperJS (and PhantomJS) is now working on
Travis CI.

Also included is a regression-tested bug fix where OR'd statements never
worked.