Crystal Palace confirmed the signing of Joe Ledley from Celtic with just minutes to spare on a hectic transfer deadline day for the club.