Add ActionFunction, a generic version of ActionBuilder

Includes some other useful refinements on ActionFunction (ActionRefiner,
ActionTransformer, and ActionFilter), updates to documentation and examples for
ActionFunction, and appropriate compose functions (as suggested by @huntc).