Minor cleanup.
Added partition-list and pair-dict funcs.

These were copied from lfe-openstack (which got it from lfe-rackspace).