Make mempools (more) dynamic, and expose.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>