I believe this valve or similar would do the job placed at location "A" (three way valve). Location "B" would require a (two way valve - on/off)
One or the other, .. both wouldn't be required.
http://www.taco-hvac.com/en/products/560%20Series/products.html?current_category=111
