Multivariable (phi, Gamma)-modules and Modular Representations of Galois and GL2