Researchers have developed a small device that attaches to a damaged heart that delivers medication as need.