raft: make tick send out messages.

@bmizerany I thought about this for a while. Then I realized the actions (outputs) should be all generated inside step function. I made a little changes to break the init loop.