Remove functions no longer used.
Fix error handling, dialog and the read_source callback.
Check access and permissions in crud interfaces.
Restrict what user can see by logged in status.