DRY up definition of serialized keys.
Improve commit's code coverage.

commit_spec.rb: 87.14% -> 98.57%
overall: 90.91% -> 92.16%
Merge pull request #2 from splattael/refactor-commit

Refactor commit and improve code coverage.