Add VIN, rename Channel to more general Input

Also fixed a possible segfault on disconnect in the input timer routines