Refactor the state cache into the engine. This makes resource writing less error prone, and paves the way for better notifications.
This resource allows to set and watch the hostname on a system. Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>