Added support for duplicating any component in live-edit.

Fixed the liveEdit save bug.