Use 'ref' to refer to commit hashes, ready for SVN. Closes #9