Custom redirection based on form submit data

- Add support for canceling requests based on request data
- Add support for _add and _edit action redirection from form data
- Minor file changes
- Added tests for classes touched in commits