Entities must have data.

They may still be malformed later, but they must at least have data if
they don't have an event type.
Merge pull request #354 from MastodonC/feature/better-profile-parsing

Entities must have data.
New programme/project manager authn logic

With tests.
WIP
Remove unneeded functions from k.h.security
Project managers user admin.

Project managers should be able to add users to their project.
Examples and updates for role.
Use new authn.

- roles->role
- Changes to editable.
- use new has-* functions
Fix failing security tests.
Dropdowns for roles.
Display default roles.
Clear user data.
Update post