Fix npm-shrinkwrap.json
set edit interface tab to view tab when click edit button

use the window.location.hash to work out which tab is currently selected
and make sure that tab is selected in the edit interface before
displaying it.

Fixes #522