WIP: Accept* headers

It would be great if you could comment already on the existing code.
This (and the header definitions) could all go in an `encoding` sub-folder inside of `common`.