Graph app write state file

Was only able to test that the upgradeState file can be written by this
app and read by the game to change the applied upgrades
Should work when connected to sensors but who knows what will happen