Extract fetching commit messages into injectable class As other parts besides GerritHookFilter need to obtain commit messages, we extract that method into an injectable class. Change-Id: I40027347e1b8ef70b424ef056060465f08f2f404