Feature: maxViewDistance, maxViewDistanceAtDark and maxDarknessToSeeUnits moved into ruleset

> could you squash this to one commit? one commit will be more helpful if someone want cherry picks some changes to another branch.

Done.