refactor of loadbalancer api, to use with all kinds of balancing, not only http-balancers