Adjust LilyClient for multitenancy

Make sure the load-balancing-and-retrying methods still do what they should do: the balancing should now also happen for e.g. the tables returned by LRepository.getTable(name).

Did quite some refactoring in this code.