Add two git log graph aliases.

The aliases are lg and lg2.
Rename link method to link_target and replace to replace_target.

With the latest version of Rake, it has a link method defined in the
global scope so we have to rename our method otherwise the
gitconfig.erb isn't processed first and instead is linked directly.
Move backup related functionality into its own method.