Add flash messages js utility

Used in Luna only atm, soon in Community also.