Refactoring of element appending.
Smart objects populate properly.
Can now delete smart categories.
Merge branch 'smart'