Add support for the Samsung NX1

Samsung has yet again come up with a new compression format that's quirky and doesn't seem to compress particularly well. I figured out the format by reading the open-source code of the Samsung DNG converter found at opensource.samsung.com but the code is all new. I've verified that the decompressed output is identical.

The diff includes some whitespace changes as well as there were some spots using tabs instead of spaces.