Finished chmodxattr and chownxattr, as well as tests for them.
Also, setxattr with XATTR_CREATE will set the owner of the xattr to the user who owns the gateway (i.e. the calling user).