libcli: move some common SMB and SMB2 stuff into libcli/smb/