Add runtime state and use uppercase names for global variables

Adds the _GONE_APPLIED global variable to keep track of the synced
appliances. This allows for any appliance to keep track of their own
dependencies and forwarding required calls to ./gone