Add mechanism to copy the selected rows to clipboard. Use in console.
Closes #289.