Fix bug where schedules where overridden and not merged!
Fix grade aggregation!
Now force a root through an extra sideload parameter.
Move document to root attachment function into send.
Add middleware function. Executes a toJSON transform if necessary.