Adding ApiServer.gitaction and test.
Refactoring GitCmds to send cmd to ApiServer.
Adding mix_pride and more helpers in mock.