The Constitutional Court's decision not to close Turkey's ruling Justice and Development Party (AKP) has drawn the country back from the brink of a crisis that could have called into question the country's democratic credentials and almost certainly have resulted in fresh elections.