The subfloor is as important to a floor’s longevity as is the actual finish, if not more so. Here’s what you need to know to do it right.