One-dimensional flows of a polytropic gas: Lie group classification, conservation laws, invariant and conservative difference schemes