Software giant Microsoft has announced targets to become carbon negative by 2030 and to "remove" all carbon the company has emitted since its founding by 2050.