Craig Hotchkiss describes Twain’s experiences with race, sexuality and imperialism