An M.I.T.-led research and product development project is trying to bring clothes into the digital age and make textiles a high-tech industry.