Rename the CrudHelpers.dataset method to make its purpose clearer.
Removed silly underscore prefixes.  Made things private where applicable
Inline ImportException into exceptions.rb
Clarify permissions checking logic
Favour external authentication sources over the local database authentication for everyone but system users.
Rename enumeration methods to avoid the overloaded word "user"
When grabbing the admins group, make sure we're explicit about which repo we're expecting it to come from
Remove unused test
Rework derived permissions to keep all of the definitions in one place
Move many_to_many declaration up
Remove unneeded always_resolve parameter
Rename NameMixin to AgentNames
Rename Orderable to TreeNodes
Fix indentation and give variable a better name
Avoid doing a double update on update_from_json
Wording change: use 'nested record' to refer to subrecords, not 'linked record'.
Remove class variable for storing nested record definitions.  Use a class instance variable instead.
Neaten up nested record removal
Neaten up setting audit fields
Clean up apply_nested_records