format flash messages

- move duplicate before filters to application controller
- called now on errors after render
- format flash message appearances