Add documentation of replication controller.

Fixes #492. Partially addresses #363 and #260.