Major reworking of gain re-refinement code to allow single-point scaling.
Not yet working.
Fixed bad handling of non-ASCII characters in sample and user names.
Merge branch 'master' of http://github.com/Gumtree/Echidna_scripts