Links between dwarf and classical novae, and implications for the space densities and evolution of cataclysmic binaries