code cleanup in DOM adapter
more tests for the jsPlumb.remove function
code hardening for removeAllEndpoints method