merged in necessary parts of django comments system since they are dropping it in 1.6