5D partition functions, q-Virasoro systems and integrable spin-chains