Before the outbreak of the Spanish Civil War, the country was governed democratically under the famous constitution from 1931, which included many liberal rights (such as freedom of speech, etc.). Who ruled the country before this constitution came into being?