Add drag-and-drop functionality from vdepizzol's fork

vdepizzol's fork uses TokenInput version 1.4.2. This commit fork
version loopj's version 1.6.1 and copy+paste what  vdepizzol did onto
the 1.6.1 version.