Adopt tern 0.7.0 repository and API