Tightened up the code

Used requests instead of json and urllib2.

This should fix issue https://github.com/Vik2015/gitrepo/issues/1