Better handling of commits.

- Use commit time in the graphs instead of request time.
- Create commit objects on commit hook processing.

Reviewers: @mhyee