Refactors promise notification code
Refactors promise notification code

Uses the internal Handler object and deferreds array.
(less variables in use).
Fixes failing promise specs.

0x00evil/TiCachedImages,sukima/TiCachedImages,sukima/TiCachedImages,0x00evil/TiCachedImages