Extract publish task logic from grunt-gh-pages

+ lint fix for git.js
Merge pull request #1 from markdalgleish/add-publish-method

Extract publish task logic from grunt-gh-pages.