Adding flag to enable action-based remote action.

The unit tests need it, they don't support RPC actions.