cleanup

refactoring: modularized MouseTracker

cleanup
bugfix: line end attach / detach is now undoable / redoable
add / remove diagram elements
added style specs