Fixes front end components that require a unique ID. Duplicate IDs in the DOM is invalid HTML.
Fix: #127 - code formatting
Check validation before writing
BUG fixes duplicate ID issue Fixes#127
BUG fixes duplicate ID issue Fixes#127
remove unneeded write()
Fix: #127 - generate unique ID upon creation
Fixed by having Widget::CMSEditor return a FieldList (with fields from
getCMSFields) for showing DropdownFields and ListboxFields correctly,
and by using FormField::saveInto() for saving the data in
Widget::populateFromPostData().