1.add managerPath option
2.change generator.js to api.js
support text,xml format result