input framework cleanup

added monitoring for transaction rate, fix IF restart logic, move
init_datastream() to a function since the event assignment was causing
problems.