Scientists have successfully tested a portable device to prepare lungs for transplant, potentially boosting the number of organs available and reducing the risk the operation will fail.