Added API for permissions in remote admin client

Now I just need to make the actions actually check for permissions...