Added Deferred and Promise objects
Moved state into Promise
Works but not perfectly yet
Moved Deferred and Promise to same file so Deferred object has access to private properties and methods of Promise
Added then
Added nil checks to promise
Added when
Added examples
Some tweaks to when
Always on when gets called even when one fails but waits for all to finish
Fixed some bugs and commented
Merge pull request #1 from joshdholtz/deferred-and-promise

Deferred and promise