Cater for EDID extension blocks

Also add ability to use stdin and stdout for testing instead of actual
device.