Git Repository is now initialized when the project is created or updated.
Fixed specs. Custom cache was removed.
 Refactored project lock logic into a common method. Fixed specs.