Added javascript serializer for expando objects.
Added draft management to images & documents.
Merged commit 8a9abea33a6e168c225a793b2a1ecda7cbbd2bcb and e41f7e729449dd557d63e0bd0e1aa0300e8e5d2c from master.