With rebuilding after disasters stretching to years, factory-built houses aspire to faster delivery, longer life than trailers — and to “lift people’s spirits.”