Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces Quantum field theory, equivariant cohomology, symplectic geometry and moduli spaces of vector bundles on Riemann surfaces 