Moved some common behavior from the example into Draggable and Dropable.