Rename function name to match file name.
Clean up serialization for sharing.
Merge pull request #438 from NICTA/sharingFixes

Preserve opacity and layer order on sharing