Document and test when/node/function

Part of #73.

Way late, but there it is! I think the `createCallback` docs need to be improved though, I couldn't think about a good use case for it...

Kinda-off-topic: I should be able to finish the `when/callback` stuff by tomorrow :)