Actions

Works for me. There are two things I don't like:

* ``expected_stdout`` cannot be a callable. I would have liked the option of ``lambda s: "OK" in s``, but this is complicated because the action needs to be pickled in order to be sent to a worker and functions can't be pickled.
* The output (especially in interactive mode) doesn't feel right.