Reset gist config values on state changes.
Move public value to the gist scope object.
Redirect to the correct URL after gist save.