Fixed save() hook: rebuild correctly and handle empty group definitions properly.
Make sure all edit groups have view access as well
Removed isChangedHook() test
Workaround to avoid circular references in core (and a couple of comments and some cleaning up).