[UNSTABLE!] Implementing check_access.
Finish implemting check_access.

Needs testing...
Start restricting access.
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.
Merge branch 'staging' into permissions