Rewrite clipboard Copy support to account for layers

Both Copy and Copy Merged are now available, and both work with
selections active or inactive.  (If no selection is present, Copy will
copy the active layer, while Copy Merged will copy a composited version
of the full image.)