How Greece got into this mess

Greece's relations with its creditors are near breaking point. How did it come to this?