Naive widget copy/cut support.
Changed attributes to data-* format since Firefox stripps all custom attributes on copy/paste.
Select widget on copy.