Added support for generator actions.

When passing a generator to defineAction$ in node v0.11 with --harmony enabled,
that generator will automatically be turned into a coroutine. This allows
promises to be yielded.