Diminished investor interest knocked a homebuying startup down a peg, scrambling plans to go public and setting off a massive round of layoffs.