Add support for running under PhantomJS and Travis

Strangely the case-sensitive test fails: https://travis-ci.org/Stuk/mr/builds/5516677 I'm not sure why, as the error should be caught.

Probably something to do with linux actually being case sensitive.