A research team has developed a drug capsule that could be used to deliver oral doses of insulin, potentially replacing the injections that patients with type 2 diabetes have to give themselves every day.