Add lifecycle docs
Merge branch '4.0/add-lifecycle-docs' into 4.0-trunk