Add ip pooling support

Adds IP pooling functionality. Passes test suite and live tests.