Fix EZP-22414: Session is lost when redirecting from a legacy module

https://jira.ez.no/browse/EZP-22414

See https://github.com/ezsystems/ezpublish-legacy/pull/914

## TODO
* [x] Implement new redirection process in `LegacyKernelController`
* [ ] Add tests