Use tern_support copied from scopevisitor instead of tern_server tern interface code, and use tern/bin/condense-like opt parsing code for bin/graph.js