The Kodaira classification of the moduli of hyperelliptic curves