Update docs.

- Update pipeline.rst with explicit thread-safety info.
- Add contributing.rst.

[ci skip]