Adds some necesary libraries for promises in ruby.
Adds many potential errors in app.rb
adds an asynchronous ruby program to deal with the promises