changing to AGPL
adding some more copyright notices
change to 64 bit timestamps to interface with avformat
This change is only for the values used internally.On the wire 32 or 16 bits can still be used.
Add support for missing PTSs
Implement shared payload header and frame header writers
Move payload handling in a proper header file