Better way of using promise
Merge remote-tracking branch 'origin/master'
Using promises for getEventsById
Adding better error logging
Cleaner date string generation
Adding response logging