Refactoring the travis scripts to allow easier extension.

As this script is sourced (needed to get the ssh-agent values out), any set's are going to propagate to the travis environment.