Issue #129. Improved handling of REST actions.