Free Bosons and Tau-Functions for Compact Riemann Surfaces and Closed Smooth Jordan Curves. Current Correlation Functions