Extract most of src/main,test from cosmo/cosmo 1.2.0 'release'

This pulls across from the cosmo 1.2.0 release in ecco's clone from SVN,
such that people using the last OSAF code, but only requiring the back end
can use this as a JAR.