Added a method of summarizing a log command.

If summarize is specified, it will return the first and last commit and the number of commits
in the log.