Add mention of sample implementation. Fix a few bugs.

- Use span instead of div for block injection (for compatibility with
containers that may only contain inline elements).
- Prevent httpResponseSendBefore observer when used in context of a
dynamic block replacement of a cache hit.