Changed name and location of rolling keys.

* They are now stored in simple integer keys under NextID/(machine).
Monitor wasn't catching everything.
Rewrote register to use transactions.

* The Lua scripts were getting out of hand.
* I still need to make it retry if the transaction fails.
Transactions are now retried as necessary.