Transient/random

@mads379 Nothing really major here, just a couple of random improvements around ``IndexJobManager``. Up to you to decide if you like it (read the commit messages for details).