Use curl.js as AMD loader
Update package.json, change main file and add bin and add escodegen dep