Updated gitignore
Improved git clone and checkout logic
Brian didn't know about TrimSpace
Fixed hg clone bug
Impoved TrimmedCmd and suppressed some git out about detached HEAD