add has_privilege util
Merge pull request #9 from dimagi/has_privs

add has_privilege util