also test the flash a little
remove dead code

The flash has been changed to use the session instead of cookies for
storage so the cookie store has been removed.

And its tests have been removed so the in memory store has been removed
as well.
Make refactorings to flash class and update its usuage in the layout