Issue 996 - adding agent to rpc for processing approvals.
Issue 996: Events now inserted into database with UUID for agent.
Issue 996 Using user pk(id) as agent identifier.
Merge branch 'joseph' of git.artefactual.com:archivematica into Issue996

Conflicts:
	src/MCPServer/lib/unit.py
	src/MCPServer/lib/unitTransfer.py
	src/MCPServer/share/mysql2
Merge branch 'master' of git.artefactual.com:archivematica into Issue996
Fixed issue with API key generation.
Added transfer directory helper function.

Added a function that allows the easy lookup of a transfer directory
if the type is specified.
Update environment variable, fixes #4824
Added transfer type by directory helper.

Added a helper function to determine a transfer's type by looking at
which watch directory it has been put into.
Support transfer types in automation API.

Added the ability to handle transfer types, other than standard transfers,
to RESP transfer automation API.
Added DashboardSettings table for misc settings.
Added admin GUI for REST API whitelist.
Implemented REST API whitelisting.
Got rid of some unneeded code.
Added logic to show blank thumbnail if none exists.
Added missing file.
Create module for advanced search functionality.

To allow the functionality in the archival storage search to be
reused, created a new module for it.
Fixed issue with AIP storage page.
Added middleware to provide useful debug info.

Added middleware that will, when in debug mode, presents helpful information
specific to certain exceptions.
Added UUID of parent-level item to CONTENTdm DIP metadata for compound items.