Refactoring the InputRegistry

Introducted abstract base class InputRegistry, each node type has to
subclass it.
Added callbacks (finishedLaunch, finishedTerminating) that are called
after launching/terminating an input.