Clean up trajectory time control

- Create a separate header for the routines defined in tcontrol.c.
  Move declarations there from statutil.h.
- Move the implementation into fileio, since that is mostly where it is
  used.

Change-Id: I59579f0bddd73d182d04c7ab160a0b547f66ebe2