Refactoring the travis scripts to allow easier extension.

What are we supposed to do with it?