replace logger "tick" with events from EventEmitter.
replaced ticks in cli with progress bars.
small other fixes