Pulled MapMode into its own file, etc

Also includes some minor cleanup of unneeded junk in MapPanel