Support async via 'done(msg)' callback

Added 'done' function callback to sandbox vars.