Before this change, the lifecycle listeners registered through
ModulesClassNamesProvider interface from DynamicOptions were not
being invoked. This change makes it possible to invoke the lifecycles
which were registered through ModulesClassNamesProvider interface
from DynamicOptions. The duration of the lifecycle starts when a
ssh or http request starts and ends when the request completes.
Change-Id: I84670dcabf9f3638185563c7ff92201e7489601a