Gravar-mail: Generalized Multilevel Function-on-Scalar Regression and Principal Component Analysis