Extract showing messages to utility class NX.util.Msg

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>