Put the header extraction into a function.
The server now expects the first command line argument to be the server port.
Added header and cluster extraction. Streaming now works to ffplay clients.