This topic is vague and open-ended. I'm leaving it that way deliberately. Perhaps some interesting, better defined topics will grow out of it. Or perhaps it's too far afield from the concept of less wrong cognition to be of interest here. So I view this topic as exploratory rather than as an attempt to solve a specific problem.
What useful purposes does religion serve? Are any of these purposes non-supernaturalistic in nature? What is success for a religion and what elements of a religion tend to cause it to become successful? How would you design a "rational religion", if such an entity is possible? How and why would a religion with that design become successful and serve a useful purpose? What are the relationships between aspects of a religion, and outcomes involving that religion? For example, Catholicism discourages birth control. Lack of birth control encourages higher birthrates among Catholics. This encourages there to be a larger number of Catholics in the next generation than would otherwise be the case, Surely there are other relationships like this? How do aspects of religion cause them to evolve differently over time?
I'm new here and not sure exactly what you expect when someone links, but it seems like you guys are generally intelligent so:
http://www.enotes.com/research-starters/sociological-theories-religion-structural
It sounds like what you're asking (with regards to the function of religion) is something that has been covered a great deal by the structural-functionalist sociological approach. If you're willing to read up on it there's a lot of information out there on the topic. Hope that helps! If you'd prefer I answer your question on here more directly feel free to ask, I'm in the middle of finals and haven't read up too much on the topic myself so I'd have to do some research before getting back to you.
Nah, we just fake it :-P