begin to add error codes for primary read/write

- need to know the difference between validation error inside vs
  outside the desired programming region
Merge branch 'error_codes' of https://github.com/swinman/dfu-programmer

Conflicts:
	src/main.c