[COOK-2872] support for firstaction/lastaction
Merge pull request #16 from akatz/lastaction

[COOK-2872] support for firstaction/lastaction