Samba 4.0 support and some refactoring in VFS module.