Cleanup firewall and load balancer code

Might actually be more appropriate in one of the more general SL modules.