Add buffer.js. Rename network.js to net.js. Transform net.js to a module.
Move gamepad, mouse and keyboard into the input module. Change system into engine, beging 'process'. Move the graphics modules into their own folder. Add the module module. Add table and database methods to sqlite.
Move the core API to api/core/. Move sqlite extension to api/amd/. Fix engine.js.