Replaced SVN id with git revision

Also updated all mentions of SVN_ID to REV_ID in the code. Makefile now
should call git and get string from last version.