Religious and legal foundations of the state system of Rus' (from IX to the beginning of the XVI centuries)