Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces Equivalence of the open KdV and the open Virasoro equations for the moduli space of Riemann surfaces with boundary 