Rename `self` to `templateSelf` in the common renderer.
Expose layouts' `content` with template helpers.
Replace `self.get_apipath()` template helper with `self.apiPath`.