#376294: (sponspored) Refactor drag-and-drop to use built-in tabledrag.js and allow click-to-add. Also fix various other bugs.