Finite-Temperature Field Theory-Principles and Applications