Add hub support.

Automatically use hub instead of git if it exists.
Merge pull request #19 from Gaelan/patch-1

Add hub support.