get_user_permissions function in RC api

Issue #404 resolved
Former user created an issue

For writing wrappers around the rhodecode api, it would be a nice enhancement for admins to be able to query what permissions a user already has so they can determine what to grant them to / remove them from.

A related enhancement would be the ability to see what groups a user is in via the get_user function.