Hide Add _references.js command for non-web projects

Also fixes <reference>-go-to-def to handle app-relative paths