Two weeks ago it looked like Greece was heading for a deal with its creditors. Then at the last minute Greece’s Prime Minister, Alexis Tsipras, decided he didn’t like what was on offer from the Eurozone, the IMF and the ECB and called a referendum on it.