Unitary and hermitian matrices in an external field (II). The Kontsevich model and continuum Virasoro constraints