Inject Document and Event payloads in resource methods.
Split out into packages.