Refactor commit NewCommit and added Validate
Unified database mocks, implemented CreateCommit controller