Update Q.d.ts

Add nfapply defintion.

See API reference here: https://github.com/kriskowal/q/wiki/API-Reference
Update Q-tests.ts

Add tests for Q.nfapply and Q.nfcall.
Merge pull request #1927 from panuhorsmalahti/def/q

Update Q.d.ts