Add masquerade utility function that allows a user to make API calls on ...

...behalf of another user.  Added tests.