add util to ensure privilege
Merge pull request #6 from dimagi/ensure-priv-util

add util to ensure privilege