Move main UI out of App.xaml.cs
Fix locks (oops)
Persist JSON channels