Minor rework of GitCommand class.

Moved setting config in constructor from own function. Still waiting for DB query to be finish to fetch email. Changed gitClone() to check if the project is cloned first for the AJAX clone call. Fixed up some tests that weren't needed after removing isCloned()