Refactor/rewrite vote counting & printing

A library has been created separating functionality into numerous pure
functions.

A test program based on this library and on the original bot has been
added.  It prints the vote times using a more compact time format.

It also discards duplicate votes based on which one is newer (older is
discarded).