All Blacks edge out Wallabies 27-19