Shaun Maloney and Gary Caldwell sealed a win that sparked the Latics' remarkable escape from relegation