Made When.defer() a static method.
Started porting the When.defer() unit tests
Ported defer.js tests to DeferTest.java