Frontend-GNOME: allow wrapping to first/last from last/first chat

This restores the behavior of with tabs which allowed wrapping from the last tab
to the first tab and from the last tab to the first tab.
Frontend: populate CMD* hook variables for command-manager hooks
Merge branch 'stable'