Fix for commit.tree and octal notation

I was having trouble getting the tree of a commit and noticed that Tree expected to be given a repo in the constructor, which commit wasn't doing.

I also noticed the CoffeeScript compiler barfed on the '0755' literal so I changed it to use the 0o notation for octal.