Fixes bugs related to toggling between modes.
Upgrades jsPlumb and switches to bower for some dependencies.