Fix toggle buttons
Add support for global/query param flags
Restore sharing ability

Mostly needed a way to get the encoded value of the current code from the store object
Restore the download ability
Fix double render start

Ensure that the change callback being removed is the same one that was
added previously.