Adds middleware to parse the body into json

Adds a middleware that parses the request body as JSON and silences a ValueError. The parsed JSON is attached to the request as the body_as_json. The repositories sync Django code was updated to show how this is used.
need to specify type