varick-core does not depend on varick-event
factor out stream class
reading/writing from server works