New config options. Added Samba support (unstable).