Iwasawa theory of CM elliptic curves