Add message timestamps to restful meshms
Fix cast from Object to primitive types