Imported edid-decode.c from XOrg.
Changes to integrate within the build, and to be able to call it from
within the agent.