Replace add_ts() function with timestamp.c which avoids out-of-order messages due to slowness

Master vs child messages were out-of-order by up to 4 seconds in some
cases.
TIMESTAMP_LOGS: Add timestamp before stripping colors for better accuracy
TIMESTAMP_LOGS: Give logs their own epoch
timestamp: Always use own start time as epoch, no need for param