Refactor flash data:

- Separate it from the regular state data
- Access the data from the router
- Any type can be passed
Release 6.4.0