Add channel number management buttons

This adds a few buttons which make it easier to manage the channel numbers.
It Assigns the lowest free number, moves channel numbers up and down, or swaps two channels.

Wait with merging this until the crash fix gets added to master.