Fix loading of message template; cut'n'paste code from webcit. Fix leak.