doc/codes.md: Initial code file format documentation.

Contains a list of opcodes and the binary code file format.