cubicweb #5554327 js: add support for commonjs [in-progress]

so that we can write modular javascript code

prioritynormal
typetask
done in<not specified>
load5.000
load left1.000
closed by<not specified>
patch[js] patch js files to prepare commonjs (related to #5554327) [rejected][js] add require.js file: a commonjs implementation (related to #5554327) [rejected][js] add commonjs support (related to #5554327) [rejected][js] patch js files to prepare commonjs (related to #5554327) [rejected][js] add require.js file: a commonjs implementation (related to #5554327) [rejected][js] add commonjs support (related to #5554327) [rejected]