core: add javadoc to RouteLifecycleListener
core: review recently introduced lifecycle methods API

 to make them more consistent between input and output
 + add tests in samplest
core: don't autocompile in test mode

it makes coverage tools useless and it doesn't make much sense, contrary to
infinirest mode where it's mandatory