First Principles Study of Li-based Battery Materials: Electronic Structure, Thermodynamics, and Kinetics