Load dialog resource replacements from external binary files.

When translating resources using a tool like Resource Hacker, the location of a resource inside the executable is very likely to change. That makes the initial plan of using binary hacks for complete modifications of the resource script completely unreliable.

However, this introduces a much nicer system: Now, we can just directly supply that blob as a separate file, using the same file name scheme as for the JSON dialog descriptors. Elegant, native, understandable, and with just a few lines of additional code to pull it off.
thcrap_init(): Turn relative archive paths into absolute ones.

Wow. I have dreaded relative paths for so long, and then it turned out to be so easy.
thcrap_configure: Write relative paths.

Closes #7.
Fix intermediate build directories.

This should also get rid of the the race conditions during compiling.
runconfig_set(): Increment the run configuration's reference counter.

Fixes bug #41 (https://bitbucket.org/nmlgc/thpatch-bugs/issue/41).
thcrap_tsa: Set window title to translated game title and identified build.
Fix some comments.
Use the WCHAR_T_FREE macro where appropriate.
Fix some function parameter consistency errors.
Initialize variables upon declaration.

Saves lines at virtually no cost.
Remove redundant conditional branches.
Use a single conditional branch to guard against null parameters.
Use the format_t type for the ANM format function parameters.
Reorder function definitions to match their order in the header file.

This is driving me ma~d.
Project file cleanup.

Oops.
General cleanup.

All the rest that doesn't really fit into the previous cleanup commits.
Fix some memory leaks.
json_object_merge(): Return the target object for convenience.
Advanced image patching, part 1: Calculate coordinates for sprite-level patching.

No visible differences yet, but it's the foundation of what's to come.
Generate local PDB files for both Debug and Release builds.

By specifying /PDBALTPATH:%_PDB% in the linker command line, we can avoid these annoying full PDB paths in the executables.