Add a convenience method for creating a chain action from a closure.
Use Groovy 2.3.