Import Spearmint r378

I was unable to find a way to merge subversion history, so see http://code.google.com/p/ioq3ztm/ for history.
Note: LLVM branch and resync_svn.sh not imported.
Fix svn to git version lost in last revision and remove ioq3 svn revision from version