Refactoring the travis scripts to allow easier extension.

+1