Added constants for server types.
Fixed the master server query.

The master server should only take modules from servers of the same type.