In 1847 Victorian Wales was scandalised by a government report into its schools and sexual morals. Phil Carradice investigates the Treason of the Blue Books.