xs.js: add AGPL licence notice, document all exported XS namespace functions