License and docs

First of several branches that have been retro-fitted as feature branches

firstly I took the working long-running-branch (3 weeks+) and derived a full patch and applied patch to a copy of master (testmaster)

I then interactively applied hunks as commits from the files, so different commits had same features in them.  This gave use a series of commits in one branch.

I then cherry picked those commits into different feature branches to make the pull requests simple.

I have deliberately not rebased or squashed any changes - I think I am at the limit of my git-fu already, but there are a limited number of big commits anyhow so the effect isw neglible.

There is *no* guarantee that the individual pull requests result in a working system, but all the pull requests do come from testmaster - which is itself working, so the final result should be idnentical to tip of testmaster which passes tests.