Fix issue with user groups

The problem was that on user authentication the current user's fsuid and
fsgid are changed, but not the additional groups. Now the groups are set
with os.setgroups(). Not optimal, but works
Fix metadata update

resolve #8
Fixed crash on metadata update. Xattr does not accept plain strings, but
encoded byte streams.
Also removal of metadata did not work properly.