First implementation of Deferred module

Changes:
- first implementation of Deferred module
- tests for it, but most of them still missing
- minor fixes to core
- JSHint config change (stop bugging me about one var)