Update for Deferred Object.

Added support for $.Deferred().
This includes unti tests and an example: deferred.html
The Deferred object is based on the jQuery implementation, so I has the
same methods and function similarly.
Switched license from BSD to MIT for better compatibility with other
Web libraries and frameworks.