Changed createNewMessage to generate a time stamp

The existing code expected the caller to provide a time stamp. That is
fine for code running on the same server, but other machines making a
POST will probably have different clocks, and we don’t want the message
out of order because one device has a skewed clock.