First working implementation of xattrs management. Needs polishing...