Remove AMD / require.js and fix assets packaging.