Refactor the project right tests in SSH commands to be more available

This way we can add more commands to the SSH library and let them
access the account group data for the current user, as well as test
the user's access rights against projects.

Signed-off-by: Shawn O. Pearce <sop@google.com>
2 files changed