Add some helper functions

Broke this out from https://github.com/rackerlabs/mimic/pull/105 so that PR can be a little smaller