Maybe I'm missing it but the documentation is a little sparse around building custom actions. How can I either
1. Return data from the action that I can access in an event that is trigger from the action
2. Set a variable on the page from within the action