Add support for service lifecycle extensions.

This is still experimental, hence undocumented.
Release 1.3.5: service lifecycle extensions.