In the middle ages otherwise known as the dark ages what provided the majority of the population with unification stability and hope