Dougie Freedman has left Crystal Palace to take over as the manager of their Championship rivals Bolton Wanderers.