Fix #333 - all times are now saved as 32-bit uints

Even on 64-bit operating systems. The code to change from time_t to
unsigned int may want to be revised at some point as it's not entirely
portable, however it does work on Windows, Linux and Mac (time_t is not
required to represent the time in seconds).
Removal of an unused variable since messagemode code was dropped from SP.