Stocks rally to end bitter week; dollar up the most since April - Reuters