The Dodgers reach terms with free-agent pitcher Cole Hamels, who could provide rotation depth if Clayton Kershaw is slow to recover from a sore elbow.