Generalized Empirical Bayes: Theory, Methodology, and Applications