Updated to use API methods.
Merge pull request #372 from krinsdeath/privileges

Updated Privileges implementation to use API methods.