Add reset state support (useful e.g. on logout).
Enrich components with getPreviousState method.