Mark Hughes has been appointed the new manager of Queens Park Rangers on a two and half year contract.