Rakefile refactoring

Separated git tasks from build tasks
Sequenced these in .travis.yml