Adds 'message' smarty function to newui framework, adds 'center' param to that function and updates a few more hard-coded messages to use the smarty function