Execute action functors by wrapping them in setTimeout.

Closes #22.