Added Grid support and fixed init to prevent flickering

Grid size support now configurable by the server, appears on the client
beneath the fog. Also tried to reduce the initialization flickering when
a client connects or a new map is loaded, so they don't see it even for
a brief moment.