Add Patch model
Update ruby-git
Create patches in database
Generate Patches Controller and move some routes to it