Add base-128 encoder/decoder and tests.
Put base-128 decoder max supported value mask in a constant.