Some updates

Adding hasBranch and getFile functions
Making JSON requests optional
#1