Refactor Travis and test code

Travis was running into problems like #43, since I reworked the test to run from within one julia process. This restores the previous behaviour on Travis while reducing the overhead on a developer machine to only two julia processes. 

The Travis behaviour is enabled by setting the TRAVIS environment variable to something.

Also this adds the infrastructure to also test everything on OSX