Masterlist revision ID shortening improvement.

Now uses Libgit2's built-in short ID function, which gets the shortest
unique ID that's at least 7 characters long. The crashes I experienced
before was because I wasn't initialising `git_buf`.