Australia beat New Zealand 24-22 in a dramatic Rugby League World Cup opener in Sydney. Debutant Jack Bostock scored a hat-trick to secure the late victory for the hosts.