Various fixes and additions

Fixed typos
Some optimizations
Added $.Callbacks and $.Deferred (Thanks to caitp
https://github.com/caitp)