I agree that psychologists, social workers and drug therapy are needed but I do think that access to internet and the information it contains is a huge help for people to better be prepared to the world as it as evolved.
But you're right I'm rather naive about the conditions of prison, the little I know I know it by having read articles by Michael Santos through HN which while interesting do not provide a complete view of how prison really is.
The thing is from what I've read of reconviction rates in US, France and other countries, the prison system isn't working. It's expensive and doesn't rehabilitate prisoners very well and from the percentage of the population who is convicted in the US, I'm not sure it even works well as a deterrent.