framer: support negative delta
stream: various fixes
stream: fix FIN insertion