Ergodic Optimization in the Expanding Case: Concepts, Tools and Applications