Gaussification and Entanglement Distillation of Continuous-Variable Systems: A Unifying Picture