rewrite flowing logic a bit to eliminate excessive add_node/remove_node calls

also got rid of obsolete optdepends
got rid of oldpipes.lua
remove a bunch of useless metadata and settings
("pipelike" everywhere, but it isn't used for anything)