Fix some issues with save/share 

This includes two changes:

1. Use deterministic IDs to fix a race condition in the layer selector plugin when deserializing data.
2. Replace a deprecated event on the feature compare plugin which seems to fix an issue where the graphic layer would not trigger its "update" event after initial page load sometimes.