Implement parsed headers

See issue #67.

The code is dirty and needs to be cleaned up; it needs a fallback implementation for parsing, etc.