converted nfs::idmap into a parameterized class.

so far we only take in $idmap_domain, but now the logic is there if
we need to add others.