Applications of S-unit equations to the arithmetic of elliptic curves