Include d3.v3.min.js for offline launching, migrate dist_to_edge_table function

`dist_to_edge_table` now stored in global.R file,
rather than panels/panel_server_net.R.
This means that net panel could be later in the panel order,
or removed, and D3 panel would still work
(or at least find the `dist_to_edge_table` function)