Add frame struct, move it to its own package
Frame marshalling: include length field
Add type to frame marshalling
Add stream identifier to frame header