ESOPs let employees own company stock, but understanding vesting, taxes, and capital gains is key to benefiting from them.