refactor the git history module
add the get and update for main project

the update has one issue that will be fixed in rails 4.2