Theory and Applications of Generalized Linear Models in Insurance