Update the minimum required capability for agents
Define the $parent_id variable
Try to decode the message if it isn't a predefined one and there is no $case set
Add a custom redirect function. Add unit tests.
Replace wp_redirect() by the custom plugin function
Show error message when upload fails (see issue #5)