refacture existing s2s
format server.js
add example
update package.json
proper stream id generation