Phase transitions and polariton dynamics in disordered coupled cavity arrays