Moves copy and paste in their own functions so copy_nodes_request and paste_nodes_request are able to work. Applies paste offset to the last mouse clicked position. (cherry picked from commit fb7c23f30b)
fb7c23f30b