Cache commit information

So that we don't have to execute Git on every request here.

Signed-off-by: Michal Čihař <michal@cihar.com>