Fix Issue 224: Elements not in layers are now automatically put into a new layer.  Also fix hiccup from r696.
Fix Issue 224: Elements not in layers are now automatically put into a new layer.  Also fix hiccup from r696.

git-svn-id: 829f041edcabe93b7893c4ec42f5993156d1fcf0@701 eee81c28-f429-11dd-99c0-75d572ba1ddd

johan/svg-edit,johan/svg-edit,santiagoaguiar/svg-edit,johan/svg-edit,santiagoaguiar/svg-edit,santiagoaguiar/svg-edit,santiagoaguiar/svg-edit