Get Log From Specific Branch

This adds the ability to get the commit log from a specific [non-checked-out] branch.

Also, it fixes pty.js compile errors (ping @chjj).