461 refactor dragging

Moved all waterbear-specific code from drag.js to wb-drag.js. In process of refactoring that code to be simpler and easier to work with. Undo/redo is currently broken, will fix it once I've done some of the simplification work.