Added chain function

I added a "chain" function which allows run a few asynchronous functions without callback hell. This alternative promises from ES6.