Researchers are developing smart pajamas that can provide biofeedback while you sleep. These new “phyjamas” may help doctors diagnose underlying medical conditions.