Jhbate/accept

@cheddar could you have a look at this please. I am using the code in blip for access&invitations at the moment.

Thanks
Jamie
For both this and getAccessPermissions, I wonder if it wouldn't make more sense to take the userId as an argument to the function and require the caller to do the getUserId() call?