Add fossil and svn support

As well as some other refactoring and cleanliness improvements.