How the Canudos war helps us rethink history