such a country way back in the 1840s would have been amazingly modern , opposed to slavery , favoring equal rights regardless of race , engendering respect for blacks and mexicans within its territory , and seeking to always deal with american indians by treaty , avoiding violence whenever possible .