Refactor: move and rename id generating fn to...
Refactor: move and rename id generating fn to...

... top of file in order to enable earlier usage (nearer the top),
and in order to reflect functionality more accurately.

Also move timestamp fn to top of file, in order to enable nearer-top
usage.

Reefersleep/sleepydo