Added support for starting/shutting down and pre-/post-start and -shutdown tasks, added tests