Add flash messages js utility

Used in Luna only atm, soon in Community also.
This test should be renamed after the `**` stuff is changed.