Lie Algebras I: Foundations