[apiclient] fixed apiclient bug, which causes double calling of event handler;
[build] added jsengine to build;
[build] added jsengine/duktape to package.json variables;
[jsengine duktape] refactored/fixed the code;