fixed some global leaks
fixed uuid format in json encoder
added 'name' to message.fields json encoder