In Alan Bennet's new play, staff room rivalry and the anarchy of adolescence provoke insistent questions about history and how you teach it; about education and its purpose.