Simplifies Travis config by creating scripts.

fixes #1009