call jsPlumb.repaint(element) instead of jsPlumb.repaintEverything() in redraw()

otherwise connections will be rendered in wrong positions in case of calling /positionGraph.
clearAll should not brutally remove elements from DOM.
automatically call /positionGraph if no coordinates information exists in imported data.