expose stream::flush as a virtual method
demo hooks
add demos folder
hook recordpacket, not writedemo
ignore demos folder
implement true flush for all streams
fix memory leak in preauth
fix memory leak with demos