Added shutdown hook
Added BuildingPane and ResourcePanel for managing different sets of
fields
Refactored accordingly also
Updated UpgradeDialog
Fixed deserialization bug (files read incorrectly)