Ported r2371 from ZXing

Original commit message: "Issue 1218 add possible support for hidden
SSIDs"
Ported r2374 from ZXing

Original commit message: "Issue 1325 Encoder clarifications"
Ported r2387 from ZXing

Original commit message: "Issue 1332 fix EDIFACT decoding"
Ported r2389 from ZXing

Original commit message: "Move RGBLuminanceSource to core/"
Ported r2391 from ZXing

Original commit message: "Issue 1335 remove dead store"
Ported r2393 from ZXing

Original commit message: "Issue 1343 fix border case version selection"
Ported from r2394 from ZXing

Original commit message: "Add cropping for RGBLuminanceSource. And
remove some unrelated dead code."
Ported r2454 from ZXing

Original commit message: "Issue 1376 Check EAN13 checksum when encoding"