Foster given the nod as All Blacks coach