Implement the 'follow' option in Repository.log()

Implement the 'follow' option for the log() method, and add tests.