Refactor travis plugin to use similar pattern as pivotal/github