Implement DQT merging

See #30.

It seems to work correctly, reviews welcome. Saved me a whopping *four bytes*!
Thanks for the clarification. The comment on line 189 is somewhat confusing in this context. Would the following be more accurate?
Returns number of emitted 16-bit tables, or -1 for failed for baseline checking