Made graph more responsive. Tap on a node on a touch device should respond.
Primary instance are listed on node 'select' which could happen due to a click or a tap.
Cleaned up graph-*.js - Added appropriate scoping to variables by making use of 'var' keyword when necessary.
Merge branch 'develop'