Add support for 0x13 packet, fix small issues, and add configuration function.

Config function is more or less a dummy for now that can seed
values into the patch_config structure until I have enough to
define an actual config file.