Deferred and promise

Made this library because I wanted to really get to know how promises worked