Broke MainForm.cs into multiple files

This makes it easier to maintain and find things.