deltarepos: Refactoring
util: Add time_period_to_sec() function
tests: Add tests for time_period_to_sec()
util: Add helper functions for logging
Add istimeperiod() function