We discuss employee stock purchase plans (ESPP), how they work and how to optimize your participation in one.