Tidy public api of json2ini module
Convert to require.js module
Merge master