Update Tern and Acorn, support completion for Angular

This fixes #5417 by adding the Tern plugin for Angular (and also moves us to the latest release of Tern and Acorn).