[refs #151] We now write the sha1 of the current commit to a VERSION fil...

...e. This is read by the gui to display the current version.
Added a cmake module for getting the sha1 hash.

closes #151