Added more utilities from other libs.

These were also taken from lfe-rackspace/lfe-openstack.