Fix URI entry focus handling and comment.

Previously, the editing flag was being set even if the refresh button
was pressed.  Simplify this logic and explain how the editing and
refresh_clicked booleans work.