The beach town—popular with yogis and surfers—is seeing an influx of upscale buyers building modern mansions with solar power and water wells.