Limit to 4 concurrent requests to mapserv
Move globals to their own file