Style.
Moved annotations and highlights ID resolving to methods.
Typo.
Temporary commenting out tags.
Converted allow/deny into methods.
Made id variables more verbose.
Removed debug print.
Strict check that ids really look like ids.
Lint style.
Removed debug print.
Bugfixes.
Added methods for maintainer and admin checks.
Removal access checks.
Forgotten change.
Use @related for logged errors.
Use access control on all methods and publish endpoints.
Cleanup of publish endpoints.
Removed metadata field from publication because it was not used anymore.
Cleaned PUBLIC_FIELDS and related.
Added maintainer and admin fields to documents.