Update error handling

+ other changes.
Remove cruft
widget id undefined, fixed
Make photo persons sortable.