Better handling of profile timestamps.

With some added logging and general timestamp handling functions.

Avoid schema-contrib version conflict.