[all][m]: extract init stuff from old datapackage.js and get it working.