Fixed small errors in Clone. Added CommitCommand class.

BUG=
R=koz@chromium.org

Review URL: https://codereview.appspot.com/54820043