First Principles Studies of Magnetic Oxides, Spin-Driven Ferroelectricity, and the Effect of Polarization in the Chemistry of Functional Heterointerfaces