Shorten a URL,
either from a commandline argument or from the clipboard,
pop up a window showing both the short and the long URL,
and select (X PRIMARY) the new short URL so it can be pasted.
Minor code cleanup