Improved code quality tools and tests
Added flash messages helper