[refactor] [minor] Moved server's browser and bpipe stream handling logic into separate modules.