Refactor flash

Old solution was:
https://gist.github.com/suryart/7418454

But this is cleaner:
https://gist.github.com/roberto/3344628

Keep HTML to partials