A Systems Theory of Religion