Replaced event-stream with through2

Also do some basic refactoring and update dependencies.