This is a call for world federalism. I support it, but it's probably ahead of our time. A democratic world federation (a truly united nations [of earth] perhaps) would be able to more effectively solve many (global) problems.
You're imagining a false history. Before nationalism it was tribalism which is just small nationalism. Before that it was "if I see a male of my species I may have to kill them".