Now generating unique ids for queue items sent to the api

To get rid of the id issues for the api.
The generator will create a new id for every key, and will preserve that id for 24h.

Rather ugly test, but didn't want to run a 2000mil loop.