MEDIUM: actions: Add standard return code for the action API

Action function can return 3 status:
 - error if the action encounter fatal error (like out of memory)
 - yield if the action must terminate his work later
 - continue in other cases
5 files changed