Scott Morrison will become the 30th Australian prime minister after a remarkable week in politics. But how did we get here?