So yes, religion isn't really a necessity anymore. We can easily replace it with technology. But it did have its place in the history of humanity, and it was quite important in forming our ability to cooperate in larger groups.
How can technology replace it so easily? Has human nature changed that much? I don't buy it. Technology may have advanced dramatically since "primitive" times, but people are still as selfish and prone to corruption as ever.
In the last few centuries, we have seen the printing press, great scientific advancement (calculus, physics, chemistry etc...), the computer, the internet, space travel etc. Technology has enabled massive increases in terms of food production, but the problem of poverty remains. Human trafficking is still a problem (and yes it still happens in developed countries). In the last few centuries we have also seen the atom bomb, several wars much larger than any recorded war from more "primitive" times, the holocaust etc.
Have we become so technologically advanced that we have outgrown our need for God? I think the opposite is true. In our technologically advanced age we need God more than ever.
I am not arguing the technology is a bad thing, it can certainly help us enforce basic laws. However, it is no replacement for God, morality or religion.