Add channel number management muttons

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.