Added a Thrift type to group module's globals.

This type has the variables controlling the behavior as
well as all functions related to parsing.