add createUrl function in util
add config functions and fixed bugs in request
removed subsiptions file
added api files: channels.js, generate.js and index.js