Deferreds almost done

Testcases still to be integrated in QUnit Testsuite