A guide to the best routes, must-see stops, and cozy accommodations on a San Francisco to Yosemite road trip.