Convert swagger.yml to serverless.yml and generate basic js files
An Util for controlling promise function flow